diff --git a/zsnes/src/dos/dosintrf.asm b/zsnes/src/dos/dosintrf.asm index 7259b877..27968ab1 100644 --- a/zsnes/src/dos/dosintrf.asm +++ b/zsnes/src/dos/dosintrf.asm @@ -1478,15 +1478,6 @@ NEWSYM Check60hz ; Call the timer update function here ret -; **************************** -; TCP/IP Stuff -; **************************** - -SECTION .text - -NEWSYM Wait1SecWin -NEWSYM WinErrorA -NEWSYM WinErrorB NEWSYM GotoHomepage ret diff --git a/zsnes/src/win/winintrf.asm b/zsnes/src/win/winintrf.asm index 7b8d514d..8ce6341f 100644 --- a/zsnes/src/win/winintrf.asm +++ b/zsnes/src/win/winintrf.asm @@ -1068,13 +1068,9 @@ SECTION .text NEWSYM UpdateDevices ; One-time input device init call WinUpdateDevices -; call DosUpdateDevices ret NEWSYM JoyRead -; call SoundProcess ; Put the sound stuff here since it's - ; called 60 times per second -; call DOSJoyRead pushad call UpdateVFrame popad diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index c6f7b135..079aafa1 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -334,7 +334,7 @@ extern "C" void DDrawError(){ char message1[256]; - sprintf(message1,"Error drawing to the screen\nMake sure the device is not being used by another process \0"); + sprintf(message1,"Error drawing to the screen\nMake sure the device is not being used by another process "); MessageBox (NULL, message1, "DirectDraw Error" , MB_ICONERROR ); } @@ -530,10 +530,7 @@ extern "C" void createnewcfg(void); void ExitFunction() { - if (GUIOn2 == 0) - { - asm_call(SaveSramData); - } + if (GUIOn2 == 0) { asm_call(SaveSramData); } asm_call(GUISaveVars); asm_call(createnewcfg); @@ -555,7 +552,7 @@ LRESULT CALLBACK Main_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { static bool shiftpr; bool accept; - int vkeyval; + int vkeyval=0; switch (uMsg) { @@ -1242,7 +1239,7 @@ void ReleaseDirectDraw() void DInputError(){ char message1[256]; - sprintf(message1,"Error initializing DirectInput\nYou may need to install DirectX 8.0a or higher located at www.microsoft.com/directx \0"); + sprintf(message1,"Error initializing DirectInput\nYou may need to install DirectX 8.0a or higher located at www.microsoft.com/directx "); MessageBox (NULL, message1, "DirectInput Error" , MB_ICONERROR ); } @@ -1253,29 +1250,29 @@ bool InitInput() if (FAILED(hr=pDirectInput8Create(hInst,DIRECTINPUT_VERSION,IID_IDirectInput8A,(void **) &DInput,NULL))) { - sprintf(message1,"Error initializing DirectInput\nYou may need to install DirectX 8.0a or higher located at www.microsoft.com/directx \0"); + sprintf(message1,"Error initializing DirectInput\nYou may need to install DirectX 8.0a or higher located at www.microsoft.com/directx "); MessageBox (NULL, message1, "DirectInput Error" , MB_ICONERROR ); switch (hr) { case DIERR_BETADIRECTINPUTVERSION: - sprintf(message1,"Beta %X\n\0",hr); + sprintf(message1,"Beta %X\n",hr); MessageBox (NULL, message1, "Init", MB_ICONERROR ); break; case DIERR_INVALIDPARAM: - sprintf(message1,"Invalid %X\n\0",hr); + sprintf(message1,"Invalid %X\n",hr); MessageBox (NULL, message1, "Init", MB_ICONERROR ); break; case DIERR_OLDDIRECTINPUTVERSION: - sprintf(message1,"OLDDIRECTINPUTVERSION %X\n\0",hr); + sprintf(message1,"OLDDIRECTINPUTVERSION %X\n",hr); MessageBox (NULL, message1, "Init", MB_ICONERROR ); break; case DIERR_OUTOFMEMORY: - sprintf(message1,"OUTOFMEMORY %X\n\0",hr); + sprintf(message1,"OUTOFMEMORY %X\n",hr); MessageBox (NULL, message1, "Init", MB_ICONERROR ); break; default: - sprintf(message1,"UNKNOWN %X\n\0",hr); + sprintf(message1,"UNKNOWN %X\n",hr); MessageBox (NULL, message1, "Init", MB_ICONERROR ); break; } diff --git a/zsnes/src/win/zfilew.c b/zsnes/src/win/zfilew.c index 91594782..bc214f38 100644 --- a/zsnes/src/win/zfilew.c +++ b/zsnes/src/win/zfilew.c @@ -513,7 +513,7 @@ LRESULT CALLBACK UPDialogMain(HWND hDlg, UINT message, WPARAM wParam, return FALSE; } -#endif CCBETA +#endif //CCBETA DWORD ZFileSystemInit() @@ -879,7 +879,7 @@ DWORD ZFileFindNext() *(char *)(DTALocPos+0x15)=0; if(ZFileFindATTRIB&0x10 && (FindDataStruct.attrib&0x10)==0) return(ZFileFindNext()); - if((ZFileFindATTRIB&0x10==0) && FindDataStruct.attrib&0x10) return(ZFileFindNext()); + if(((ZFileFindATTRIB&0x10)==0) && FindDataStruct.attrib&0x10) return(ZFileFindNext()); if(FindDataStruct.attrib&_A_SUBDIR) *(char *)(DTALocPos+0x15)=0x10; strcpy((char *)DTALocPos+0x1E,FindDataStruct.name); @@ -894,7 +894,7 @@ DWORD ZFileFindFirst() TempFind=0; if(FindFirstHandle==-1) return(-1); if(ZFileFindATTRIB&0x10 && (FindDataStruct.attrib&0x10)==0) return(ZFileFindNext()); - if((ZFileFindATTRIB&0x10==0) && FindDataStruct.attrib&0x10) return(ZFileFindNext()); + if(((ZFileFindATTRIB&0x10)==0) && FindDataStruct.attrib&0x10) return(ZFileFindNext()); if(FindDataStruct.attrib&_A_SUBDIR) *(char *)(DTALocPos+0x15)=0x10; strcpy((char *) DTALocPos+0x1E,FindDataStruct.name);