Smashed some warnings and cleaned up the code.
This commit is contained in:
@@ -1478,15 +1478,6 @@ NEWSYM Check60hz
|
|||||||
; Call the timer update function here
|
; Call the timer update function here
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; ****************************
|
|
||||||
; TCP/IP Stuff
|
|
||||||
; ****************************
|
|
||||||
|
|
||||||
SECTION .text
|
|
||||||
|
|
||||||
NEWSYM Wait1SecWin
|
|
||||||
NEWSYM WinErrorA
|
|
||||||
NEWSYM WinErrorB
|
|
||||||
NEWSYM GotoHomepage
|
NEWSYM GotoHomepage
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|||||||
@@ -1068,13 +1068,9 @@ SECTION .text
|
|||||||
|
|
||||||
NEWSYM UpdateDevices ; One-time input device init
|
NEWSYM UpdateDevices ; One-time input device init
|
||||||
call WinUpdateDevices
|
call WinUpdateDevices
|
||||||
; call DosUpdateDevices
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
NEWSYM JoyRead
|
NEWSYM JoyRead
|
||||||
; call SoundProcess ; Put the sound stuff here since it's
|
|
||||||
; called 60 times per second
|
|
||||||
; call DOSJoyRead
|
|
||||||
pushad
|
pushad
|
||||||
call UpdateVFrame
|
call UpdateVFrame
|
||||||
popad
|
popad
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ extern "C"
|
|||||||
void DDrawError(){
|
void DDrawError(){
|
||||||
char message1[256];
|
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 );
|
MessageBox (NULL, message1, "DirectDraw Error" , MB_ICONERROR );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -530,10 +530,7 @@ extern "C" void createnewcfg(void);
|
|||||||
|
|
||||||
void ExitFunction()
|
void ExitFunction()
|
||||||
{
|
{
|
||||||
if (GUIOn2 == 0)
|
if (GUIOn2 == 0) { asm_call(SaveSramData); }
|
||||||
{
|
|
||||||
asm_call(SaveSramData);
|
|
||||||
}
|
|
||||||
asm_call(GUISaveVars);
|
asm_call(GUISaveVars);
|
||||||
asm_call(createnewcfg);
|
asm_call(createnewcfg);
|
||||||
|
|
||||||
@@ -555,7 +552,7 @@ LRESULT CALLBACK Main_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
{
|
{
|
||||||
static bool shiftpr;
|
static bool shiftpr;
|
||||||
bool accept;
|
bool accept;
|
||||||
int vkeyval;
|
int vkeyval=0;
|
||||||
|
|
||||||
switch (uMsg)
|
switch (uMsg)
|
||||||
{
|
{
|
||||||
@@ -1242,7 +1239,7 @@ void ReleaseDirectDraw()
|
|||||||
void DInputError(){
|
void DInputError(){
|
||||||
char message1[256];
|
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 );
|
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)))
|
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 );
|
MessageBox (NULL, message1, "DirectInput Error" , MB_ICONERROR );
|
||||||
|
|
||||||
switch (hr)
|
switch (hr)
|
||||||
{
|
{
|
||||||
case DIERR_BETADIRECTINPUTVERSION:
|
case DIERR_BETADIRECTINPUTVERSION:
|
||||||
sprintf(message1,"Beta %X\n\0",hr);
|
sprintf(message1,"Beta %X\n",hr);
|
||||||
MessageBox (NULL, message1, "Init", MB_ICONERROR );
|
MessageBox (NULL, message1, "Init", MB_ICONERROR );
|
||||||
break;
|
break;
|
||||||
case DIERR_INVALIDPARAM:
|
case DIERR_INVALIDPARAM:
|
||||||
sprintf(message1,"Invalid %X\n\0",hr);
|
sprintf(message1,"Invalid %X\n",hr);
|
||||||
MessageBox (NULL, message1, "Init", MB_ICONERROR );
|
MessageBox (NULL, message1, "Init", MB_ICONERROR );
|
||||||
break;
|
break;
|
||||||
case DIERR_OLDDIRECTINPUTVERSION:
|
case DIERR_OLDDIRECTINPUTVERSION:
|
||||||
sprintf(message1,"OLDDIRECTINPUTVERSION %X\n\0",hr);
|
sprintf(message1,"OLDDIRECTINPUTVERSION %X\n",hr);
|
||||||
MessageBox (NULL, message1, "Init", MB_ICONERROR );
|
MessageBox (NULL, message1, "Init", MB_ICONERROR );
|
||||||
break;
|
break;
|
||||||
case DIERR_OUTOFMEMORY:
|
case DIERR_OUTOFMEMORY:
|
||||||
sprintf(message1,"OUTOFMEMORY %X\n\0",hr);
|
sprintf(message1,"OUTOFMEMORY %X\n",hr);
|
||||||
MessageBox (NULL, message1, "Init", MB_ICONERROR );
|
MessageBox (NULL, message1, "Init", MB_ICONERROR );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
sprintf(message1,"UNKNOWN %X\n\0",hr);
|
sprintf(message1,"UNKNOWN %X\n",hr);
|
||||||
MessageBox (NULL, message1, "Init", MB_ICONERROR );
|
MessageBox (NULL, message1, "Init", MB_ICONERROR );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -513,7 +513,7 @@ LRESULT CALLBACK UPDialogMain(HWND hDlg, UINT message, WPARAM wParam,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif CCBETA
|
#endif //CCBETA
|
||||||
|
|
||||||
|
|
||||||
DWORD ZFileSystemInit()
|
DWORD ZFileSystemInit()
|
||||||
@@ -879,7 +879,7 @@ DWORD ZFileFindNext()
|
|||||||
*(char *)(DTALocPos+0x15)=0;
|
*(char *)(DTALocPos+0x15)=0;
|
||||||
|
|
||||||
if(ZFileFindATTRIB&0x10 && (FindDataStruct.attrib&0x10)==0) return(ZFileFindNext());
|
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;
|
if(FindDataStruct.attrib&_A_SUBDIR) *(char *)(DTALocPos+0x15)=0x10;
|
||||||
strcpy((char *)DTALocPos+0x1E,FindDataStruct.name);
|
strcpy((char *)DTALocPos+0x1E,FindDataStruct.name);
|
||||||
@@ -894,7 +894,7 @@ DWORD ZFileFindFirst()
|
|||||||
TempFind=0;
|
TempFind=0;
|
||||||
if(FindFirstHandle==-1) return(-1);
|
if(FindFirstHandle==-1) return(-1);
|
||||||
if(ZFileFindATTRIB&0x10 && (FindDataStruct.attrib&0x10)==0) return(ZFileFindNext());
|
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;
|
if(FindDataStruct.attrib&_A_SUBDIR) *(char *)(DTALocPos+0x15)=0x10;
|
||||||
strcpy((char *) DTALocPos+0x1E,FindDataStruct.name);
|
strcpy((char *) DTALocPos+0x1E,FindDataStruct.name);
|
||||||
|
|||||||
Reference in New Issue
Block a user