Added High Priority mode to win32 port
This commit is contained in:
@@ -404,6 +404,7 @@ NEWSYM CalibYmin209, dd 0
|
|||||||
NEWSYM CalibXmax209, dd 0
|
NEWSYM CalibXmax209, dd 0
|
||||||
NEWSYM CalibYmax209, dd 0
|
NEWSYM CalibYmax209, dd 0
|
||||||
NEWSYM maxskip, db 9
|
NEWSYM maxskip, db 9
|
||||||
|
NEWSYM HighPriority, db 0
|
||||||
FPSAtStart db 0
|
FPSAtStart db 0
|
||||||
NEWSYM SidewinderFix, db 0
|
NEWSYM SidewinderFix, db 0
|
||||||
GUIInitSt1 db 'ATZ'
|
GUIInitSt1 db 'ATZ'
|
||||||
|
|||||||
@@ -1989,7 +1989,13 @@ DisplayGUIOptionClick:
|
|||||||
GUIClickCButton2 11,46,byte[vsyncon],byte[cfgvsync],1
|
GUIClickCButton2 11,46,byte[vsyncon],byte[cfgvsync],1
|
||||||
GUIClickCButton2 11,56,byte[FPUCopy],byte[cfgcopymethod],2
|
GUIClickCButton2 11,56,byte[FPUCopy],byte[cfgcopymethod],2
|
||||||
GUIClickCButtonM 11,66,byte[pl12s34]
|
GUIClickCButtonM 11,66,byte[pl12s34]
|
||||||
|
cmp byte[OSPort],3
|
||||||
|
je near .win32config
|
||||||
GUIClickCButton 11,76,byte[SidewinderFix]
|
GUIClickCButton 11,76,byte[SidewinderFix]
|
||||||
|
.win32config
|
||||||
|
%ifndef __LINUX__
|
||||||
|
GUIClickCButton 11,76,byte[HighPriority]
|
||||||
|
%endif
|
||||||
GUIClickCButton 11,86,byte[FPSAtStart]
|
GUIClickCButton 11,86,byte[FPSAtStart]
|
||||||
GUIClickCButton 11,96,byte[Turbo30hz]
|
GUIClickCButton 11,96,byte[Turbo30hz]
|
||||||
GUIClickCButton 11,106,byte[TimerEnable]
|
GUIClickCButton 11,106,byte[TimerEnable]
|
||||||
@@ -2105,7 +2111,10 @@ DisplayGUISoundClick:
|
|||||||
GUIClickCButton 11,39,byte[RaisePitch]
|
GUIClickCButton 11,39,byte[RaisePitch]
|
||||||
GUIClickCButton 11,101,byte[SoundNoiseDis]
|
GUIClickCButton 11,101,byte[SoundNoiseDis]
|
||||||
GUIClickCButtonS 11,111,byte[RevStereo]
|
GUIClickCButtonS 11,111,byte[RevStereo]
|
||||||
|
cmp byte[OSPort],3
|
||||||
|
je near .win32sound
|
||||||
GUIClickCButton 11,121,byte[Surround]
|
GUIClickCButton 11,121,byte[Surround]
|
||||||
|
.win32sound
|
||||||
%ifndef __LINUX__
|
%ifndef __LINUX__
|
||||||
GUIClickCButton 11,121,byte[LargeSoundBuf]
|
GUIClickCButton 11,121,byte[LargeSoundBuf]
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
@@ -1314,6 +1314,9 @@ DisplayGUIOption:
|
|||||||
je near .win32b2
|
je near .win32b2
|
||||||
GUIOuttextwin2u 4,26,81,GUIOptionTextA,0
|
GUIOuttextwin2u 4,26,81,GUIOptionTextA,0
|
||||||
.win32b2
|
.win32b2
|
||||||
|
%ifndef __LINUX__
|
||||||
|
GUIOuttextwin2u 4,26,81,GUIOptionTextAb,0
|
||||||
|
%endif
|
||||||
GUIOuttextwin2u 4,26,91,GUIOptionTextB,1
|
GUIOuttextwin2u 4,26,91,GUIOptionTextB,1
|
||||||
GUIOuttextwin2u 4,26,101,GUIOptionTextC,2
|
GUIOuttextwin2u 4,26,101,GUIOptionTextC,2
|
||||||
GUIOuttextwin2 4,26,111,GUIOptionTextD
|
GUIOuttextwin2 4,26,111,GUIOptionTextD
|
||||||
@@ -1339,6 +1342,9 @@ DisplayGUIOption:
|
|||||||
je near .win32c2
|
je near .win32c2
|
||||||
GUIOuttextwin2 4,25,80,GUIOptionTextA
|
GUIOuttextwin2 4,25,80,GUIOptionTextA
|
||||||
.win32c2
|
.win32c2
|
||||||
|
%ifndef __LINUX__
|
||||||
|
GUIOuttextwin2 4,25,80,GUIOptionTextAb
|
||||||
|
%endif
|
||||||
GUIOuttextwin2 4,25,90,GUIOptionTextB
|
GUIOuttextwin2 4,25,90,GUIOptionTextB
|
||||||
GUIOuttextwin2 4,25,100,GUIOptionTextC
|
GUIOuttextwin2 4,25,100,GUIOptionTextC
|
||||||
GUIOuttextwin2 4,25,120,GUIOptionTextE
|
GUIOuttextwin2 4,25,120,GUIOptionTextE
|
||||||
@@ -1399,6 +1405,14 @@ DisplayGUIOption:
|
|||||||
je near .win322
|
je near .win322
|
||||||
GUIDisplayIconWin 4,11,76,[GUITemp]
|
GUIDisplayIconWin 4,11,76,[GUITemp]
|
||||||
.win322
|
.win322
|
||||||
|
%ifndef __LINUX__
|
||||||
|
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
||||||
|
cmp byte[HighPriority],0
|
||||||
|
je .win323
|
||||||
|
mov dword[GUITemp],GUIIconDataCheckBoxC
|
||||||
|
.win323
|
||||||
|
%endif
|
||||||
|
GUIDisplayIconWin 4,11,76,[GUITemp]
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
||||||
cmp byte[FPSAtStart],0
|
cmp byte[FPSAtStart],0
|
||||||
je .nocheckbox6
|
je .nocheckbox6
|
||||||
@@ -1511,6 +1525,9 @@ GUIOptionText5 db 'VSYNC',0
|
|||||||
GUIOptionText6 db 'MMX SUPPORT',0
|
GUIOptionText6 db 'MMX SUPPORT',0
|
||||||
GUIOptionText7 db 'USE PL3/4 AS PL1/2',0
|
GUIOptionText7 db 'USE PL3/4 AS PL1/2',0
|
||||||
GUIOptionTextA db 'SIDEWINDER FIX',0
|
GUIOptionTextA db 'SIDEWINDER FIX',0
|
||||||
|
%ifndef __LINUX__
|
||||||
|
GUIOptionTextAb db 'HIGH PRIORITY MODE',0
|
||||||
|
%endif
|
||||||
GUIOptionTextB db 'FPS AT START',0
|
GUIOptionTextB db 'FPS AT START',0
|
||||||
GUIOptionTextC db 'USE 30HZ FOR TURBO',0
|
GUIOptionTextC db 'USE 30HZ FOR TURBO',0
|
||||||
GUIOptionTextD db 'ENABLE GAME CLOCK',0
|
GUIOptionTextD db 'ENABLE GAME CLOCK',0
|
||||||
|
|||||||
@@ -184,8 +184,8 @@ unsigned char keyboardhit=0;
|
|||||||
void initwinvideo();
|
void initwinvideo();
|
||||||
extern BYTE StereoSound;
|
extern BYTE StereoSound;
|
||||||
extern DWORD SoundQuality;
|
extern DWORD SoundQuality;
|
||||||
extern BYTE Surround;
|
|
||||||
extern BYTE LargeSoundBuf;
|
extern BYTE LargeSoundBuf;
|
||||||
|
extern BYTE HighPriority;
|
||||||
extern int CurKeyPos;
|
extern int CurKeyPos;
|
||||||
extern int CurKeyReadPos;
|
extern int CurKeyReadPos;
|
||||||
extern int KeyBuffer[16];
|
extern int KeyBuffer[16];
|
||||||
@@ -458,6 +458,8 @@ int RegisterWinClass ( void )
|
|||||||
|
|
||||||
if (RegisterClass(&wcl) == 0) return FALSE;
|
if (RegisterClass(&wcl) == 0) return FALSE;
|
||||||
|
|
||||||
|
if (HighPriority == 1) SetPriorityClass(hInst, HIGH_PRIORITY_CLASS);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user