Re-arranged the Speed Options window, also moved Toggled FF/SD from General Options to Speed Options.
This commit is contained in:
@@ -358,6 +358,8 @@ GUIgetcurrentinput:
|
|||||||
je near GUIPathKeys
|
je near GUIPathKeys
|
||||||
cmp ebx,20
|
cmp ebx,20
|
||||||
je near GUISaveKeys
|
je near GUISaveKeys
|
||||||
|
cmp ebx,21
|
||||||
|
je near GUISpeedKeys
|
||||||
cmp ebx,8
|
cmp ebx,8
|
||||||
je near GUIGetInputLine
|
je near GUIGetInputLine
|
||||||
ret
|
ret
|
||||||
@@ -666,10 +668,6 @@ GUIOptionKeys:
|
|||||||
jne .nogameclock
|
jne .nogameclock
|
||||||
xor byte[TimerEnable],1
|
xor byte[TimerEnable],1
|
||||||
.nogameclock
|
.nogameclock
|
||||||
cmp dh,'G' ; Move to Speed?
|
|
||||||
jne .nofastforward
|
|
||||||
xor byte[FastFwdToggle],1
|
|
||||||
.nofastforward
|
|
||||||
cmp dh,'O'
|
cmp dh,'O'
|
||||||
jne .nooldgfx
|
jne .nooldgfx
|
||||||
xor byte[OldGfxMode2],1
|
xor byte[OldGfxMode2],1
|
||||||
@@ -736,6 +734,19 @@ GUISaveKeys:
|
|||||||
.nopauserewind
|
.nopauserewind
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
GUISpeedKeys:
|
||||||
|
cmp dh,'a' ; Setup
|
||||||
|
jb .nocap
|
||||||
|
cmp dh,'z'
|
||||||
|
ja .nocap
|
||||||
|
sub dh,'z'-'Z'
|
||||||
|
.nocap
|
||||||
|
cmp dh,'T' ; Checkbox
|
||||||
|
jne .nofastforward
|
||||||
|
xor byte[FastFwdToggle],1
|
||||||
|
.nofastforward
|
||||||
|
ret
|
||||||
|
|
||||||
GUIAddonKeys:
|
GUIAddonKeys:
|
||||||
cmp dh,'a' ;Setup
|
cmp dh,'a' ;Setup
|
||||||
jb .nocap
|
jb .nocap
|
||||||
|
|||||||
@@ -2326,14 +2326,13 @@ DisplayGUIOptionClick:
|
|||||||
GUIClickCButton 11,70,byte[FPSAtStart]
|
GUIClickCButton 11,70,byte[FPSAtStart]
|
||||||
GUIClickCButton 11,80,byte[Turbo30hz]
|
GUIClickCButton 11,80,byte[Turbo30hz]
|
||||||
GUIClickCButton 11,90,byte[TimerEnable]
|
GUIClickCButton 11,90,byte[TimerEnable]
|
||||||
GUIClickCButton 11,100,byte[FastFwdToggle]
|
GUIClickCButtonO 11,100,byte[OldGfxMode2]
|
||||||
GUIClickCButtonO 11,110,byte[OldGfxMode2]
|
GUIClickCButton 11,110,byte[DontSavePath]
|
||||||
GUIClickCButton 11,120,byte[DontSavePath]
|
GUIClickCButton 11,120,byte[SmallMsgText]
|
||||||
GUIClickCButton 11,130,byte[SmallMsgText]
|
GUIClickCButton 11,130,byte[AutoPatch]
|
||||||
GUIClickCButton 11,140,byte[AutoPatch]
|
GUIClickCButton 11,140,byte[RomInfo]
|
||||||
GUIClickCButton 11,150,byte[RomInfo]
|
|
||||||
%ifdef __WIN32__
|
%ifdef __WIN32__
|
||||||
GUIClickCButtonW 11,160,byte[DisableScreenSaver]
|
GUIClickCButtonW 11,150,byte[DisableScreenSaver]
|
||||||
%endif
|
%endif
|
||||||
; Frameskip = 0
|
; Frameskip = 0
|
||||||
cmp byte[frameskip],0
|
cmp byte[frameskip],0
|
||||||
@@ -3228,24 +3227,27 @@ DisplayGUISaveClick:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
DisplayGUISpeedClick:
|
DisplayGUISpeedClick:
|
||||||
DGOptnsProcBox 100,28,[KeyFastFrwrd]
|
GUIClickCButton 11,125,byte[FastFwdToggle] ; Checkbox
|
||||||
DGOptnsProcBox 100,38,[KeySlowDown]
|
|
||||||
DGOptnsProcBox 100,48,[KeyResetSpeed]
|
|
||||||
|
|
||||||
cmp eax,15
|
DGOptnsProcBox 12,58,[KeyFastFrwrd] ; Shortcut Boxes
|
||||||
|
DGOptnsProcBox 12,68,[KeySlowDown]
|
||||||
|
DGOptnsProcBox 12,78,[KeyResetSpeed]
|
||||||
|
|
||||||
|
; Speed Slider
|
||||||
|
cmp eax,15 ; X-Range for click-area
|
||||||
jl near .nomovebar
|
jl near .nomovebar
|
||||||
cmp eax,15+116
|
cmp eax,15+116
|
||||||
jg near .nomovebar
|
jg near .nomovebar
|
||||||
sub eax,15
|
sub eax,15
|
||||||
shr eax,1
|
shr eax,1
|
||||||
cmp edx,89
|
cmp edx,29 ; Y-Range for click-area
|
||||||
jl near .nomovebar
|
jl near .nomovebar
|
||||||
cmp edx,93
|
cmp edx,33
|
||||||
jg near .nomovebar
|
jg near .nomovebar
|
||||||
mov [EmuSpeed],al
|
mov [EmuSpeed],al ; Lock mouse to bar when clicked
|
||||||
mov byte[GUIHold],6
|
mov byte[GUIHold],6
|
||||||
mov eax,[GUIwinposy+21*4]
|
mov eax,[GUIwinposy+21*4]
|
||||||
add eax,91
|
add eax,31
|
||||||
mov [GUIHoldYlim],eax
|
mov [GUIHoldYlim],eax
|
||||||
mov eax,[GUIwinposx+21*4]
|
mov eax,[GUIwinposx+21*4]
|
||||||
add eax,15
|
add eax,15
|
||||||
|
|||||||
@@ -1471,14 +1471,13 @@ DisplayGUIOption: ; Frame Rate/Auto Frame Rate/Max Frame Skip/New Gfx Engi
|
|||||||
GUIOuttextwin2u 4,26,74,GUIOptionText7,0
|
GUIOuttextwin2u 4,26,74,GUIOptionText7,0
|
||||||
GUIOuttextwin2u 4,26,84,GUIOptionText8,2
|
GUIOuttextwin2u 4,26,84,GUIOptionText8,2
|
||||||
GUIOuttextwin2u 4,26,94,GUIOptionText9,12
|
GUIOuttextwin2u 4,26,94,GUIOptionText9,12
|
||||||
GUIOuttextwin2u 4,26,104,GUIOptionTextA,2
|
GUIOuttextwin2u 4,26,104,GUIOptionTextA,0
|
||||||
GUIOuttextwin2u 4,26,114,GUIOptionTextB,0
|
GUIOuttextwin2u 4,26,114,GUIOptionTextB,0
|
||||||
GUIOuttextwin2u 4,26,124,GUIOptionTextC,0
|
GUIOuttextwin2u 4,26,124,GUIOptionTextC,1
|
||||||
GUIOuttextwin2u 4,26,134,GUIOptionTextD,1
|
GUIOuttextwin2u 4,26,134,GUIOptionTextD,12
|
||||||
GUIOuttextwin2u 4,26,144,GUIOptionTextE,12
|
GUIOuttextwin2u 4,26,144,GUIOptionTextE,15
|
||||||
GUIOuttextwin2u 4,26,154,GUIOptionTextF,15
|
|
||||||
%ifdef __WIN32__
|
%ifdef __WIN32__
|
||||||
GUIOuttextwin2u 4,26,164,GUIOptionTextW,1
|
GUIOuttextwin2u 4,26,154,GUIOptionTextW,1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
add byte[GUItextcolor],15 ; Text
|
add byte[GUItextcolor],15 ; Text
|
||||||
@@ -1501,9 +1500,8 @@ DisplayGUIOption: ; Frame Rate/Auto Frame Rate/Max Frame Skip/New Gfx Engi
|
|||||||
GUIOuttextwin2 4,25,123,GUIOptionTextC
|
GUIOuttextwin2 4,25,123,GUIOptionTextC
|
||||||
GUIOuttextwin2 4,25,133,GUIOptionTextD
|
GUIOuttextwin2 4,25,133,GUIOptionTextD
|
||||||
GUIOuttextwin2 4,25,143,GUIOptionTextE
|
GUIOuttextwin2 4,25,143,GUIOptionTextE
|
||||||
GUIOuttextwin2 4,25,153,GUIOptionTextF
|
|
||||||
%ifdef __WIN32__
|
%ifdef __WIN32__
|
||||||
GUIOuttextwin2 4,25,163,GUIOptionTextW
|
GUIOuttextwin2 4,25,153,GUIOptionTextW
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
@@ -1575,54 +1573,47 @@ DisplayGUIOption: ; Frame Rate/Auto Frame Rate/Max Frame Skip/New Gfx Engi
|
|||||||
GUIDisplayIconWin 4,11,90,[GUITemp]
|
GUIDisplayIconWin 4,11,90,[GUITemp]
|
||||||
|
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
||||||
cmp byte[FastFwdToggle],0
|
cmp byte[OldGfxMode2],0
|
||||||
je .nocheckbox8
|
je .nocheckbox8
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxC
|
mov dword[GUITemp],GUIIconDataCheckBoxC
|
||||||
.nocheckbox8
|
.nocheckbox8
|
||||||
GUIDisplayIconWin 4,11,100,[GUITemp]
|
GUIDisplayIconWin 4,11,100,[GUITemp]
|
||||||
|
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
||||||
cmp byte[OldGfxMode2],0
|
cmp byte[DontSavePath],0
|
||||||
je .nocheckbox9
|
je .nocheckbox9
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxC
|
mov dword[GUITemp],GUIIconDataCheckBoxC
|
||||||
.nocheckbox9
|
.nocheckbox9
|
||||||
GUIDisplayIconWin 4,11,110,[GUITemp]
|
GUIDisplayIconWin 4,11,110,[GUITemp]
|
||||||
|
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
||||||
cmp byte[DontSavePath],0
|
cmp byte[SmallMsgText],0
|
||||||
je .nocheckbox10
|
je .nocheckbox10
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxC
|
mov dword[GUITemp],GUIIconDataCheckBoxC
|
||||||
.nocheckbox10
|
.nocheckbox10
|
||||||
GUIDisplayIconWin 4,11,120,[GUITemp]
|
GUIDisplayIconWin 4,11,120,[GUITemp]
|
||||||
|
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
||||||
cmp byte[SmallMsgText],0
|
cmp byte[AutoPatch],0
|
||||||
je .nocheckbox11
|
je .nocheckbox11
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxC
|
mov dword[GUITemp],GUIIconDataCheckBoxC
|
||||||
.nocheckbox11
|
.nocheckbox11
|
||||||
GUIDisplayIconWin 4,11,130,[GUITemp]
|
GUIDisplayIconWin 4,11,130,[GUITemp]
|
||||||
|
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
||||||
cmp byte[AutoPatch],0
|
cmp byte[RomInfo],0
|
||||||
je .nocheckbox12
|
je .nocheckbox12
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxC
|
mov dword[GUITemp],GUIIconDataCheckBoxC
|
||||||
.nocheckbox12
|
.nocheckbox12
|
||||||
GUIDisplayIconWin 4,11,140,[GUITemp]
|
GUIDisplayIconWin 4,11,140,[GUITemp]
|
||||||
|
|
||||||
|
%ifdef __WIN32__
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
||||||
cmp byte[RomInfo],0
|
cmp byte[DisableScreenSaver],0
|
||||||
je .nocheckbox13
|
je .nocheckbox13
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxC
|
mov dword[GUITemp],GUIIconDataCheckBoxC
|
||||||
.nocheckbox13
|
.nocheckbox13
|
||||||
GUIDisplayIconWin 4,11,150,[GUITemp]
|
GUIDisplayIconWin 4,11,150,[GUITemp]
|
||||||
|
|
||||||
%ifdef __WIN32__
|
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxUC
|
|
||||||
cmp byte[DisableScreenSaver],0
|
|
||||||
je .nocheckbox14
|
|
||||||
mov dword[GUITemp],GUIIconDataCheckBoxC
|
|
||||||
.nocheckbox14
|
|
||||||
GUIDisplayIconWin 4,11,160,[GUITemp]
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
cmp byte[frameskip],0 ; Determine if AutoFR is enabled
|
cmp byte[frameskip],0 ; Determine if AutoFR is enabled
|
||||||
@@ -1726,12 +1717,12 @@ GUIOptionText6b db 'HIGH PRIORITY MODE',0
|
|||||||
GUIOptionText7 db 'FPS AT PROGRAM START',0
|
GUIOptionText7 db 'FPS AT PROGRAM START',0
|
||||||
GUIOptionText8 db 'USE 30HZ FOR TURBO',0
|
GUIOptionText8 db 'USE 30HZ FOR TURBO',0
|
||||||
GUIOptionText9 db 'ENABLE GAME CLOCK',0
|
GUIOptionText9 db 'ENABLE GAME CLOCK',0
|
||||||
GUIOptionTextA db 'TOGGLED FAST FWD/SLWDWN',0
|
;GUIOptionTextA db 'TOGGLED FAST FWD/SLWDWN',0
|
||||||
GUIOptionTextB db 'OLD GFX MODE 2',0
|
GUIOptionTextA db 'OLD GFX MODE 2',0
|
||||||
GUIOptionTextC db 'DON',39,'T SAVE CUR PATH',0
|
GUIOptionTextB db 'DON',39,'T SAVE CUR PATH',0
|
||||||
GUIOptionTextD db 'USE SMALL MESSAGE TEXT',0
|
GUIOptionTextC db 'USE SMALL MESSAGE TEXT',0
|
||||||
GUIOptionTextE db 'ENABLE AUTO-PATCH',0
|
GUIOptionTextD db 'ENABLE AUTO-PATCH',0
|
||||||
GUIOptionTextF db 'ENABLE ROMINFO.TXT',0
|
GUIOptionTextE db 'ENABLE ROMINFO.TXT',0
|
||||||
GUIOptionTextW db 'DISABLE SCREENSAVER',0 ; Try to keep as last option, since its Win Only.
|
GUIOptionTextW db 'DISABLE SCREENSAVER',0 ; Try to keep as last option, since its Win Only.
|
||||||
GUIOptionTextX db '-',0
|
GUIOptionTextX db '-',0
|
||||||
GUIOptionTextY db '+',0
|
GUIOptionTextY db '+',0
|
||||||
@@ -6363,36 +6354,46 @@ DisplayGUISpeed: ;Speed Options
|
|||||||
mov byte[GUItextcolor],211
|
mov byte[GUItextcolor],211
|
||||||
.zero
|
.zero
|
||||||
sub byte[GUItextcolor],15
|
sub byte[GUItextcolor],15
|
||||||
GUIOuttextwin2 21,8,29,GUISpeedTextA1
|
GUIOuttextwin2 21,40,59,GUISpeedTextA1
|
||||||
GUIOuttextwin2 21,8,39,GUISpeedTextA2
|
GUIOuttextwin2 21,40,69,GUISpeedTextA2
|
||||||
GUIOuttextwin2 21,8,49,GUISpeedTextA3
|
GUIOuttextwin2 21,40,79,GUISpeedTextA3
|
||||||
|
GUIOuttextwin2u 21,25,129,GUISpeedTextC1,0
|
||||||
|
|
||||||
add byte[GUItextcolor],15 ;Text
|
add byte[GUItextcolor],15 ;Text
|
||||||
GUIOuttextwin2 21,7,28,GUISpeedTextA1
|
GUIOuttextwin2 21,39,58,GUISpeedTextA1
|
||||||
GUIOuttextwin2 21,7,38,GUISpeedTextA2
|
GUIOuttextwin2 21,39,68,GUISpeedTextA2
|
||||||
GUIOuttextwin2 21,7,48,GUISpeedTextA3
|
GUIOuttextwin2 21,39,78,GUISpeedTextA3
|
||||||
|
GUIOuttextwin2 21,24,128,GUISpeedTextC1
|
||||||
|
|
||||||
mov al,[GUIWincol] ;Yellow Shadow
|
mov al,[GUIWincol] ;Yellow Shadow
|
||||||
mov byte[GUItextcolor],al
|
mov byte[GUItextcolor],al
|
||||||
GUIOuttextwin2 21,8,19,GUISpeedTextA
|
GUIOuttextwin2 21,8,49,GUISpeedTextA
|
||||||
GUIOuttextwin2 21,16,79,GUISpeedTextB
|
GUIOuttextwin2 21,16,19,GUISpeedTextB
|
||||||
|
|
||||||
mov byte[GUItextcolor],163 ;Yellow Text
|
mov byte[GUItextcolor],163 ;Yellow Text
|
||||||
cmp byte[GUIWincoladd],0
|
cmp byte[GUIWincoladd],0
|
||||||
je .zero3
|
je .zero3
|
||||||
mov byte[GUItextcolor],164
|
mov byte[GUItextcolor],164
|
||||||
.zero3
|
.zero3
|
||||||
GUIOuttextwin2 21,7,18,GUISpeedTextA
|
GUIOuttextwin2 21,7,48,GUISpeedTextA
|
||||||
GUIOuttextwin2 21,15,78,GUISpeedTextB
|
GUIOuttextwin2 21,15,18,GUISpeedTextB
|
||||||
|
|
||||||
|
|
||||||
DDrawBox 21,100,28,[KeyFastFrwrd] ;Shortcut Boxes
|
DDrawBox 21,12,58,[KeyFastFrwrd] ;Shortcut Boxes
|
||||||
DDrawBox 21,100,38,[KeySlowDown]
|
DDrawBox 21,12,68,[KeySlowDown]
|
||||||
DDrawBox 21,100,48,[KeyResetSpeed]
|
DDrawBox 21,12,78,[KeyResetSpeed]
|
||||||
|
|
||||||
DGOptnsBorderBox 21,99,27 ;Borders
|
DGOptnsBorderBox 21,11,57 ;Borders
|
||||||
DGOptnsBorderBox 21,99,37
|
DGOptnsBorderBox 21,11,67
|
||||||
DGOptnsBorderBox 21,99,47
|
DGOptnsBorderBox 21,11,77
|
||||||
|
|
||||||
|
|
||||||
|
mov dword[GUITemp],GUIIconDataCheckBoxUC ; Checkbox
|
||||||
|
cmp byte[FastFwdToggle],0
|
||||||
|
je .nocheckbox
|
||||||
|
mov dword[GUITemp],GUIIconDataCheckBoxC
|
||||||
|
.nocheckbox
|
||||||
|
GUIDisplayIconWin 21,11,125,[GUITemp]
|
||||||
|
|
||||||
|
|
||||||
mov eax,dword[GUIwinposx+21*4] ;Slider
|
mov eax,dword[GUIwinposx+21*4] ;Slider
|
||||||
@@ -6400,7 +6401,8 @@ DisplayGUISpeed: ;Speed Options
|
|||||||
mov ecx,eax
|
mov ecx,eax
|
||||||
add eax,15
|
add eax,15
|
||||||
add ecx,15+116
|
add ecx,15+116
|
||||||
add ebx,91
|
; add ebx,91
|
||||||
|
add ebx,31
|
||||||
xor edx,edx
|
xor edx,edx
|
||||||
mov dl,215
|
mov dl,215
|
||||||
sub dl,[GUIWincoladd]
|
sub dl,[GUIWincoladd]
|
||||||
@@ -6414,7 +6416,7 @@ DisplayGUISpeed: ;Speed Options
|
|||||||
shl eax,1
|
shl eax,1
|
||||||
mov dword[GUITemp],12
|
mov dword[GUITemp],12
|
||||||
add [GUITemp],eax
|
add [GUITemp],eax
|
||||||
GUIDisplayIconWin 21,[GUITemp],87,GUIIconDataSlideBar
|
GUIDisplayIconWin 21,[GUITemp],27,GUIIconDataSlideBar
|
||||||
mov dword[GUISpeedTextB1],0
|
mov dword[GUISpeedTextB1],0
|
||||||
mov esi,GUISpeedTextB1+2
|
mov esi,GUISpeedTextB1+2
|
||||||
xor eax,eax ; currently emuspeed ranges from 0 to 58
|
xor eax,eax ; currently emuspeed ranges from 0 to 58
|
||||||
@@ -6450,13 +6452,13 @@ DisplayGUISpeed: ;Speed Options
|
|||||||
.convdone
|
.convdone
|
||||||
mov [GUITemp],esi
|
mov [GUITemp],esi
|
||||||
mov byte[GUItextcolor],223
|
mov byte[GUItextcolor],223
|
||||||
GUIOuttextwin2 21,63,79,[GUITemp]
|
GUIOuttextwin2 21,63,19,[GUITemp]
|
||||||
mov byte[GUItextcolor],221
|
mov byte[GUItextcolor],221
|
||||||
cmp byte[GUIWincoladd],0
|
cmp byte[GUIWincoladd],0
|
||||||
je .zero4
|
je .zero4
|
||||||
mov byte[GUItextcolor],222
|
mov byte[GUItextcolor],222
|
||||||
.zero4
|
.zero4
|
||||||
GUIOuttextwin2 21,62,78,[GUITemp]
|
GUIOuttextwin2 21,62,18,[GUITemp]
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SECTION .data
|
SECTION .data
|
||||||
@@ -6468,6 +6470,8 @@ GUISpeedTextA3 db 'RESET SPEED',0
|
|||||||
GUISpeedTextB db 'SPEED : ',0
|
GUISpeedTextB db 'SPEED : ',0
|
||||||
GUISpeedTextB1 db '---',0
|
GUISpeedTextB1 db '---',0
|
||||||
|
|
||||||
|
GUISpeedTextC1 db 'TOGGLED FFWD/SLWDWN',0
|
||||||
|
|
||||||
;General data
|
;General data
|
||||||
GUILoadDisp db 'LOAD GAME',0
|
GUILoadDisp db 'LOAD GAME',0
|
||||||
GUIResetDisp db 'RESET GAME',0
|
GUIResetDisp db 'RESET GAME',0
|
||||||
|
|||||||
Reference in New Issue
Block a user