Removed dead code, fixed space bar video change problem in DOS.
This commit is contained in:
@@ -2035,20 +2035,6 @@ guifirsttimemsg:
|
|||||||
jne .pressedokay
|
jne .pressedokay
|
||||||
jmp .again
|
jmp .again
|
||||||
.pressedokay
|
.pressedokay
|
||||||
.again2
|
|
||||||
call Check_Key
|
|
||||||
or al,al
|
|
||||||
jz .nokey
|
|
||||||
call Get_Key
|
|
||||||
jmp .again2
|
|
||||||
.nokey
|
|
||||||
cmp byte[MouseDis],1
|
|
||||||
je .mousedis2
|
|
||||||
push ebx
|
|
||||||
; mov eax,0Bh
|
|
||||||
; int 33h
|
|
||||||
pop ebx
|
|
||||||
.mousedis2
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SECTION .data
|
SECTION .data
|
||||||
@@ -2109,20 +2095,6 @@ guimustrestartmsg:
|
|||||||
jnz .b
|
jnz .b
|
||||||
jmp .again
|
jmp .again
|
||||||
.pressedokay
|
.pressedokay
|
||||||
.again2
|
|
||||||
call Check_Key
|
|
||||||
or al,al
|
|
||||||
jz .nokey
|
|
||||||
call Get_Key
|
|
||||||
jmp .again2
|
|
||||||
.nokey
|
|
||||||
cmp byte[MouseDis],1
|
|
||||||
je .mousedis2
|
|
||||||
push ebx
|
|
||||||
; mov eax,0Bh
|
|
||||||
; int 33h
|
|
||||||
pop ebx
|
|
||||||
.mousedis2
|
|
||||||
mov byte[GUIQuit],1
|
mov byte[GUIQuit],1
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@@ -2184,20 +2156,6 @@ guiprevideo:
|
|||||||
.mousedis
|
.mousedis
|
||||||
jmp .again
|
jmp .again
|
||||||
.pressedokay
|
.pressedokay
|
||||||
.again2
|
|
||||||
call Check_Key
|
|
||||||
or al,al
|
|
||||||
jz .nokey
|
|
||||||
call Get_Key
|
|
||||||
jmp .again2
|
|
||||||
.nokey
|
|
||||||
cmp byte[MouseDis],1
|
|
||||||
je .mousedis2
|
|
||||||
push ebx
|
|
||||||
; mov eax,0Bh
|
|
||||||
; int 33h
|
|
||||||
pop ebx
|
|
||||||
.mousedis2
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SECTION .data
|
SECTION .data
|
||||||
@@ -2240,8 +2198,11 @@ guipostvideo:
|
|||||||
cmp dword[GUIkeydelay],0
|
cmp dword[GUIkeydelay],0
|
||||||
je .pressedokay
|
je .pressedokay
|
||||||
|
|
||||||
mov byte[pressed+39h],0
|
;This is to make all ports not register space bar from being pressed earlier
|
||||||
|
mov byte[pressed+2Ch],0
|
||||||
|
|
||||||
call JoyRead
|
call JoyRead
|
||||||
|
|
||||||
cmp byte[pressed+39h],0
|
cmp byte[pressed+39h],0
|
||||||
jne .pressedokay
|
jne .pressedokay
|
||||||
jmp .pressedfail
|
jmp .pressedfail
|
||||||
|
|||||||
Reference in New Issue
Block a user