Restart feature

This commit is contained in:
zsknight
2001-05-28 02:59:43 +00:00
parent 0aa8bed43c
commit b7c2f0d54c
2 changed files with 34 additions and 11 deletions

View File

@@ -2564,14 +2564,14 @@ guimustrestartmsg:
GUIBox 43,87,43,151,161 GUIBox 43,87,43,151,161
GUIBox 213,87,213,151,159 GUIBox 213,87,213,151,159
GUIBox 43,151,213,151,158 GUIBox 43,151,213,151,158
GUIOuttext 56,93,guiqtimemsg1,220-15 GUIOuttext 56,92,guiqtimemsg1,220-15
GUIOuttext 55,92,guiqtimemsg1,220 GUIOuttext 55,91,guiqtimemsg1,220
GUIOuttext 56,108,guiqtimemsg2,220-15 GUIOuttext 56,100,guiqtimemsg2,220-15
GUIOuttext 55,107,guiqtimemsg2,220 GUIOuttext 55,99,guiqtimemsg2,220
GUIOuttext 56,116,guiqtimemsg3,220-15 GUIOuttext 56,108,guiqtimemsg3,220-15
GUIOuttext 55,115,guiqtimemsg3,220 GUIOuttext 55,107,guiqtimemsg3,220
GUIOuttext 56,124,guiqtimemsg4,220-15 GUIOuttext 56,116,guiqtimemsg4,220-15
GUIOuttext 55,123,guiqtimemsg4,220 GUIOuttext 55,115,guiqtimemsg4,220
GUIOuttext 56,139,guiqtimemsg8,220-15 GUIOuttext 56,139,guiqtimemsg8,220-15
GUIOuttext 55,138,guiqtimemsg8,220 GUIOuttext 55,138,guiqtimemsg8,220
call vidpastecopyscr call vidpastecopyscr
@@ -2579,8 +2579,17 @@ guimustrestartmsg:
call DisplayBoxes call DisplayBoxes
call DisplayMenu call DisplayMenu
call JoyRead call JoyRead
cmp byte[pressed+2Ch],0
mov byte[pressed+2Ch],0
call JoyRead
xor ebx,ebx
mov ecx,256+128+64
.b
cmp byte[pressed+ebx],0
jne .pressedokay jne .pressedokay
inc ebx
loop .b
jmp .again jmp .again
.pressedokay .pressedokay
.again2 .again2

View File

@@ -994,6 +994,20 @@ GUIWinClicked:
%%noclick %%noclick
%endmacro %endmacro
%macro GUIClickCButtonat 3
cmp eax,%1+1
jl %%noclick
cmp edx,%2+3
jl %%noclick
cmp eax,%1+6
jg %%noclick
cmp edx,%2+8
jg %%noclick
xor %3,1
call guimustrestartmsg
%%noclick
%endmacro
%macro GUIClickCButtonC 3 %macro GUIClickCButtonC 3
cmp eax,%1+1 cmp eax,%1+1
jl %%noclick jl %%noclick
@@ -2107,7 +2121,7 @@ DisplayGUIOptionClick:
GUIClickCButton 11,166,byte[DontSavePath] GUIClickCButton 11,166,byte[DontSavePath]
GUIClickCButton 11,176,byte[SPCDisable] GUIClickCButton 11,176,byte[SPCDisable]
%ifdef __WIN32__ %ifdef __WIN32__
GUIClickCButton 11,186,byte[AlternateTimer] GUIClickCButtonat 11,186,byte[AlternateTimer]
%endif %endif
; Frameskip = 0 ; Frameskip = 0
cmp byte[frameskip],0 cmp byte[frameskip],0
@@ -2150,7 +2164,7 @@ DisplayGUIVideoClick:
GUIClickCButton5 11,163,byte[Triplebufen],1 GUIClickCButton5 11,163,byte[Triplebufen],1
.nocheckboxttb .nocheckboxttb
%ifndef __MSDOS__ %ifndef __MSDOS__
GUIClickCButton5 11,183,byte[BlackAndWhite],1 GUIClickCButton 11,183,byte[BlackAndWhite]
%endif %endif
xor ebx,ebx xor ebx,ebx
mov bl,[cvidmode] mov bl,[cvidmode]