printf("SysRunGui\n");
}
-static void dummy_lace()
+static void CALLBACK dummy_lace()
{
}
#include "../libpcsxcore/system.h"
#include "../plugins/cdrcimg/cdrcimg.h"
-#ifndef _WIN32
+// this can't be __stdcall like it was in PSEmu API as too many functions are mixed up
+#undef CALLBACK
#define CALLBACK
-#else
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#endif
-static int dummy_func() {
+static long CALLBACK dummy_func() {
return 0;
}
extern int CALLBACK SPUplayCDDAchannel(short *, int);
/* PAD */
-static long PADreadPort1(PadDataS *pad)
+static long CALLBACK PADreadPort1(PadDataS *pad)
{
pad->controllerType = in_type1;
pad->buttonStatus = ~in_keystate;
return 0;
}
-static long PADreadPort2(PadDataS *pad)
+static long CALLBACK PADreadPort2(PadDataS *pad)
{
pad->controllerType = in_type2;
pad->buttonStatus = ~in_keystate >> 16;
extern "C" {
#endif
+// this can't be __stdcall like it was in PSEmu API as too many functions are mixed up
+#undef CALLBACK
+#define CALLBACK
+
// header version
#define _PPDK_HEADER_VERSION 3
#endif\r
\r
#include "psxcommon.h"\r
+#include "psemu_plugin_defs.h"\r
\r
//#define ENABLE_SIO1API 1\r
\r
-#ifndef _WIN32\r
-\r
-typedef void* HWND;\r
-#define CALLBACK\r
-\r
-#else\r
-\r
-#define WIN32_LEAN_AND_MEAN\r
-#include <windows.h>\r
-\r
-#endif\r
-\r
typedef long (CALLBACK *GPUopen)(unsigned long *, char *, char *);\r
typedef long (CALLBACK *SPUopen)(void);\r
typedef long (CALLBACK *PADopen)(unsigned long *);\r
typedef long (CALLBACK *SIO1open)(unsigned long *);\r
\r
#include "spu.h"\r
-\r
-#include "psemu_plugin_defs.h"\r
#include "decode_xa.h"\r
\r
int LoadPlugins();\r
#include <string.h>
#include <stdlib.h>
#include <zlib.h>
-#ifndef _WIN32
-#define CALLBACK
+#if !defined(_WIN32) && !defined(NO_DYLIB)
#include <dlfcn.h>
-#else
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
#endif
#include "cdrcimg.h"
+#undef CALLBACK
+#define CALLBACK
+
#define PFX "cdrcimg: "
#define err(f, ...) fprintf(stderr, PFX f, ##__VA_ARGS__)
* See the COPYING file in the top-level directory.
*/
-#ifndef _WIN32
-#define CALLBACK
-#else
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#endif
-
#include "main.h"
unsigned char CurPad, CurByte, CurCmd, CmdLen;
#include <stdlib.h>
#include <string.h>
-#ifdef _WIN32
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#else
#undef CALLBACK
#define CALLBACK
#define DWORD unsigned int
#define LOWORD(l) ((unsigned short)(l))
#define HIWORD(l) ((unsigned short)(((unsigned int)(l) >> 16) & 0xFFFF))
-#endif
#ifndef INLINE
#define INLINE static inline
extern OGLVertex vertex[4];\r
extern short sprtY,sprtX,sprtH,sprtW;\r
#ifdef _WINDOWS\r
-extern HWND hWWindow;\r
+//extern HWND hWWindow;\r
#endif\r
extern BOOL bIsFirstFrame;\r
extern int iWinSize;\r