Added auto save state increment feature

This commit is contained in:
pagefault
2001-08-23 05:30:00 +00:00
parent 901ed64319
commit 0a3e7c4a8b
6 changed files with 75 additions and 23 deletions

View File

@@ -170,6 +170,7 @@ EXTSYM DeInitModemC
EXTSYM ipxgetchar,ipxsendchar,TCPIPStoreByte
EXTSYM TCPIPGetByte,GUIBIFIL
EXTSYM ModemSendChar
EXTSYM firstsaveinc
%ifdef __LINUX__
EXTSYM numlockptr
%endif
@@ -584,6 +585,7 @@ NEWSYM DisableScreenSaver, db 0
NEWSYM TrapMouseCursor, db 1
NEWSYM KeyQuickClock, dd 0
NEWSYM KeyQuickMinimize, dd 0
NEWSYM AutoIncSaveSlot, db 0
GUIsave equ $-GUIRAdd

View File

@@ -826,12 +826,11 @@ GUIOptionKeys:
mov [cfgnewgfx],al
.invalidng
.nonewgfx
; cmp dh,'V'
; jne .novsync
; xor byte[vsyncon],1
; mov al,[vsyncon]
; mov [cfgvsync],al
;.novsync
cmp dh,'T'
jne .noautoincsave
xor byte[AutoIncSaveSlot],1
mov byte[firstsaveinc],1
.noautoincsave
cmp dh,'M'
jne .nommxcopy
xor byte[FPUCopy],2

View File

@@ -1332,6 +1332,20 @@ GUIWinClicked:
%%noclick
%endmacro
%macro GUIClickCButtonAS 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
mov byte[firstsaveinc],1
%%noclick
%endmacro
%macro GUISlidebarPostImpl 13 ; x1,y1,x2,y2,upjump,downjump,holdpos,scsize,view,cur,listsize
cmp dword[%11],0
je near %%nolower
@@ -2153,7 +2167,7 @@ DisplayGUIOptionClick:
jne near .invalidng
GUIClickCButton2 11,36,byte[newengen],byte[cfgnewgfx],1
.invalidng
; GUIClickCButton2 11,46,byte[vsyncon],byte[cfgvsync],1
GUIClickCButtonAS 11,46,byte[AutoIncSaveSlot]
GUIClickCButtonMMX 11,56,byte[FPUCopy]
GUIClickCButtonM 11,66,byte[pl12s34]
%ifdef __MSDOS__

View File

@@ -1391,7 +1391,7 @@ DisplayGUIOption:
GUIOuttextwin2 4,6,16,[GUITemp]
GUIOuttextwin2u 4,26,31,GUIOptionText2,0
GUIOuttextwin2u 4,26,41,GUIOptionText4,0
; GUIOuttextwin2u 4,26,51,GUIOptionText5,0
GUIOuttextwin2u 4,26,51,GUIOptionText5,2
GUIOuttextwin2u 4,26,61,GUIOptionText6,0
GUIOuttextwin2u 4,26,71,GUIOptionText7,0
%ifdef __MSDOS__
@@ -1417,7 +1417,7 @@ DisplayGUIOption:
GUIOuttextwin2 4,5,15,[GUITemp]
GUIOuttextwin2 4,25,30,GUIOptionText2
GUIOuttextwin2 4,25,40,GUIOptionText4
; GUIOuttextwin2 4,25,50,GUIOptionText5
GUIOuttextwin2 4,25,50,GUIOptionText5
GUIOuttextwin2 4,25,60,GUIOptionText6
GUIOuttextwin2 4,25,70,GUIOptionText7
%ifdef __MSDOS__
@@ -1458,12 +1458,12 @@ DisplayGUIOption:
mov dword[GUITemp],GUIIconDataCheckBoxC
.nocheckbox1
GUIDisplayIconWin 4,11,36,[GUITemp]
; mov dword[GUITemp],GUIIconDataCheckBoxUC
; cmp byte[vsyncon],0
; je .nocheckbox2
; mov dword[GUITemp],GUIIconDataCheckBoxC
;.nocheckbox2
; GUIDisplayIconWin 4,11,46,[GUITemp]
mov dword[GUITemp],GUIIconDataCheckBoxUC
cmp byte[AutoIncSaveSlot],0
je .nocheckbox2
mov dword[GUITemp],GUIIconDataCheckBoxC
.nocheckbox2
GUIDisplayIconWin 4,11,46,[GUITemp]
mov dword[GUITemp],GUIIconDataCheckBoxUC
cmp byte[FPUCopy],2
jne .nocheckbox3
@@ -1602,7 +1602,7 @@ GUIOptionText1 db 'FRAME RATE',0
GUIOptionText2 db 'AUTO FRAME RATE',0
GUIOptionText3 db 'MAX FRAME SKIP',0
GUIOptionText4 db 'NEW GFX ENGINE',0
;GUIOptionText5 db 'VSYNC',0
GUIOptionText5 db 'AUTO INCRMNT SAVE SLOT',0
GUIOptionText6 db 'MMX SUPPORT',0
GUIOptionText7 db 'USE PL3/4 AS PL1/2',0
GUIOptionTextA db 'SIDEWINDER FIX',0