Get rid of some netplay warnings

This commit is contained in:
OV2 2018-12-15 15:29:26 +01:00
parent 962dd60a7c
commit f00bb66d1d
3 changed files with 5 additions and 11 deletions

View File

@ -5,11 +5,6 @@
\*****************************************************************************/ \*****************************************************************************/
#ifdef NETPLAY_SUPPORT #ifdef NETPLAY_SUPPORT
#ifdef _DEBUG
#define NP_DEBUG 1
#endif
#define NP_DEBUG 3 // FF-FIXME
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -555,7 +550,7 @@ bool8 S9xNPLoadROMDialog (const char *rom_name)
printf ("CLIENT: Asking GUI thread to open ROM load dialog...\n"); printf ("CLIENT: Asking GUI thread to open ROM load dialog...\n");
#endif #endif
PostMessage (GUI.hWnd, WM_USER + 3, (uint32) rom_name, (uint32) rom_name); PostMessage (GUI.hWnd, WM_USER + 3, (WPARAM) rom_name, (LPARAM) rom_name);
#ifdef NP_DEBUG #ifdef NP_DEBUG
printf ("CLIENT: Waiting for reply from GUI thread...\n"); printf ("CLIENT: Waiting for reply from GUI thread...\n");

View File

@ -22,7 +22,9 @@
* joypad data 4 * n * joypad data 4 * n
*/ */
//#define NP_DEBUG 1 #ifdef _DEBUG
#define NP_DEBUG 1
#endif
#define NP_VERSION 10 #define NP_VERSION 10
#define NP_JOYPAD_HIST_SIZE 120 #define NP_JOYPAD_HIST_SIZE 120

View File

@ -5,9 +5,6 @@
\*****************************************************************************/ \*****************************************************************************/
#ifdef NETPLAY_SUPPORT #ifdef NETPLAY_SUPPORT
#ifdef _DEBUG
#define NP_DEBUG 1
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -478,7 +475,7 @@ void S9xNPProcessClient (int c)
} }
else else
#ifdef __WIN32__ #ifdef __WIN32__
S9xNPServerAddTask (NP_SERVER_SYNC_CLIENT, (void *) c); S9xNPServerAddTask (NP_SERVER_SYNC_CLIENT, (void *)(UINT_PTR) c);
#else #else
/* We need to resync all clients on new player connect as we don't have a 'reference game' */ /* We need to resync all clients on new player connect as we don't have a 'reference game' */
S9xNPServerAddTask (NP_SERVER_SYNC_ALL, (void *) (pint) c); S9xNPServerAddTask (NP_SERVER_SYNC_ALL, (void *) (pint) c);