Added quick key for saving SPC data
This commit is contained in:
@@ -33,7 +33,7 @@ EXTSYM frameskip,initvideo,newgfx16b,oldhandSBo,oldhandSBs,soundon,cvidmode
|
|||||||
EXTSYM vidbuffer,vidbufferofsa,vidbufferofsb,disable65816sh,GUISaveVars,virqnodisable
|
EXTSYM vidbuffer,vidbufferofsa,vidbufferofsb,disable65816sh,GUISaveVars,virqnodisable
|
||||||
EXTSYM KeySaveState,KeyLoadState,KeyQuickExit,KeyQuickLoad,KeyQuickRst,GUIDoReset
|
EXTSYM KeySaveState,KeyLoadState,KeyQuickExit,KeyQuickLoad,KeyQuickRst,GUIDoReset
|
||||||
EXTSYM KeyOnStA,KeyOnStB,ProcessKeyOn,printnum,sramsavedis,DSPDisable,C4Enable
|
EXTSYM KeyOnStA,KeyOnStB,ProcessKeyOn,printnum,sramsavedis,DSPDisable,C4Enable
|
||||||
EXTSYM KeyQuickClock,KeyQuickMinimize,TimerEnable,AutoIncSaveSlot
|
EXTSYM KeyQuickClock,KeyQuickSaveSPC,TimerEnable,AutoIncSaveSlot
|
||||||
EXTSYM IRQHack,HIRQLoc,Offby1line,splitflags,joinflags,KeyQuickSnapShot
|
EXTSYM IRQHack,HIRQLoc,Offby1line,splitflags,joinflags,KeyQuickSnapShot
|
||||||
EXTSYM csounddisable,videotroub,Open_File,Close_File,Read_File,ResetTripleBuf
|
EXTSYM csounddisable,videotroub,Open_File,Close_File,Read_File,ResetTripleBuf
|
||||||
EXTSYM Write_File,Output_Text,Create_File,Check_Key,Get_Key,Change_Dir,InitPreGame
|
EXTSYM Write_File,Output_Text,Create_File,Check_Key,Get_Key,Change_Dir,InitPreGame
|
||||||
@@ -115,15 +115,10 @@ EXTSYM fxbit01,fxbit01pcal,fxbit23,fxbit23pcal,fxbit45,fxbit45pcal,fxbit67,fxbit
|
|||||||
EXTSYM SfxSFR,nosprincr,hirqmode2
|
EXTSYM SfxSFR,nosprincr,hirqmode2
|
||||||
EXTSYM cpucycle,debstop,switchtovirqdeb,debstop3,switchtonmideb
|
EXTSYM cpucycle,debstop,switchtovirqdeb,debstop3,switchtonmideb
|
||||||
EXTSYM ReadSPC7110log,WriteSPC7110log
|
EXTSYM ReadSPC7110log,WriteSPC7110log
|
||||||
|
EXTSYM statefileloc
|
||||||
NEWSYM ExecuteAsmStart
|
|
||||||
EXTSYM NetPlayNoMore
|
EXTSYM NetPlayNoMore
|
||||||
|
|
||||||
%ifdef __WIN32__
|
NEWSYM ExecuteAsmStart
|
||||||
EXTSYM MinimizeWindow
|
|
||||||
%endif
|
|
||||||
|
|
||||||
EXTSYM statefileloc
|
|
||||||
|
|
||||||
%macro BackupCVMacM 2
|
%macro BackupCVMacM 2
|
||||||
mov edx,%1
|
mov edx,%1
|
||||||
@@ -986,6 +981,7 @@ NEWSYM abcdefg1, dd 0
|
|||||||
NEWSYM abcdefg2, dd 0
|
NEWSYM abcdefg2, dd 0
|
||||||
NEWSYM abcdefg3, dd 0
|
NEWSYM abcdefg3, dd 0
|
||||||
NEWSYM SSKeyPressed, dd 0
|
NEWSYM SSKeyPressed, dd 0
|
||||||
|
NEWSYM SaveSPCKeyPressed, dd 0
|
||||||
NEWSYM NoSoundReinit, dd 0
|
NEWSYM NoSoundReinit, dd 0
|
||||||
NEWSYM NextNGDisplay, db 0
|
NEWSYM NextNGDisplay, db 0
|
||||||
NEWSYM TempVidInfo, dd 0
|
NEWSYM TempVidInfo, dd 0
|
||||||
@@ -1261,6 +1257,8 @@ reexecuteb2:
|
|||||||
jnz near loadstate
|
jnz near loadstate
|
||||||
cmp byte[SSKeyPressed],1
|
cmp byte[SSKeyPressed],1
|
||||||
je near showmenu
|
je near showmenu
|
||||||
|
cmp byte[SaveSPCKeyPressed],1
|
||||||
|
je near showmenu
|
||||||
cmp byte[debugdisble],0
|
cmp byte[debugdisble],0
|
||||||
jne .nodebugger
|
jne .nodebugger
|
||||||
test byte[pressed+59],1
|
test byte[pressed+59],1
|
||||||
@@ -2301,9 +2299,10 @@ NEWSYM exitloop
|
|||||||
mov byte[pressed+eax],0
|
mov byte[pressed+eax],0
|
||||||
mov eax,[KeyQuickClock]
|
mov eax,[KeyQuickClock]
|
||||||
mov byte[pressed+eax],0
|
mov byte[pressed+eax],0
|
||||||
mov eax,[KeyQuickMinimize]
|
mov eax,[KeyQuickSaveSPC]
|
||||||
mov byte[pressed+eax],0
|
mov byte[pressed+eax],0
|
||||||
mov byte[SSKeyPressed],0
|
mov byte[SSKeyPressed],0
|
||||||
|
mov byte[SaveSPCKeyPressed],0
|
||||||
jmp cpuover.returntoloop
|
jmp cpuover.returntoloop
|
||||||
.okay
|
.okay
|
||||||
mov byte[ExecExitOkay],5
|
mov byte[ExecExitOkay],5
|
||||||
@@ -2790,19 +2789,15 @@ NEWSYM cpuover
|
|||||||
xor byte[TimerEnable],1
|
xor byte[TimerEnable],1
|
||||||
mov byte[pressed+eax],2
|
mov byte[pressed+eax],2
|
||||||
.noclockkey
|
.noclockkey
|
||||||
%ifdef __WIN32__
|
mov eax,dword[KeyQuickSaveSPC]
|
||||||
mov eax,dword[KeyQuickMinimize]
|
|
||||||
or eax,eax
|
or eax,eax
|
||||||
jz .nominimizekey
|
jz .nosavespckey
|
||||||
test byte[pressed+eax],1
|
test byte[pressed+eax],1
|
||||||
jz .nominimizekey
|
jz .nosavespckey
|
||||||
pushad
|
mov byte[SaveSPCKeyPressed],1
|
||||||
call MinimizeWindow
|
|
||||||
popad
|
|
||||||
mov byte[pressed+eax],2
|
mov byte[pressed+eax],2
|
||||||
jmp exitloop
|
jmp exitloop
|
||||||
.nominimizekey
|
.nosavespckey
|
||||||
%endif
|
|
||||||
test byte[pressed+1],01h
|
test byte[pressed+1],01h
|
||||||
jnz near exitloop
|
jnz near exitloop
|
||||||
test byte[pressed+59],01h
|
test byte[pressed+59],01h
|
||||||
|
|||||||
@@ -592,7 +592,7 @@ NEWSYM ExclusiveSound, db 0
|
|||||||
NEWSYM DisableScreenSaver, db 0
|
NEWSYM DisableScreenSaver, db 0
|
||||||
NEWSYM TrapMouseCursor, db 1
|
NEWSYM TrapMouseCursor, db 1
|
||||||
NEWSYM KeyQuickClock, dd 0
|
NEWSYM KeyQuickClock, dd 0
|
||||||
NEWSYM KeyQuickMinimize, dd 0
|
NEWSYM KeyQuickSaveSPC, dd 0
|
||||||
NEWSYM AutoIncSaveSlot, db 0
|
NEWSYM AutoIncSaveSlot, db 0
|
||||||
NEWSYM TCPIPAddress, db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
NEWSYM TCPIPAddress, db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
NEWSYM SoundInterpType, db 2
|
NEWSYM SoundInterpType, db 2
|
||||||
|
|||||||
@@ -2729,9 +2729,7 @@ DisplayGameOptnsClick:
|
|||||||
DGOptnsProcBox 8+114+78,178,[KeyQuickClock]
|
DGOptnsProcBox 8+114+78,178,[KeyQuickClock]
|
||||||
DGOptnsProcBox 8+25,188,[KeyQuickChat]
|
DGOptnsProcBox 8+25,188,[KeyQuickChat]
|
||||||
DGOptnsProcBox 8+57+45,188,[KeyQuickSnapShot]
|
DGOptnsProcBox 8+57+45,188,[KeyQuickSnapShot]
|
||||||
%ifdef __WIN32__
|
DGOptnsProcBox 8+108+70,188,[KeyQuickSaveSPC]
|
||||||
DGOptnsProcBox 8+108+70,188,[KeyQuickMinimize]
|
|
||||||
%endif
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
DisplayGUIOptnsClick:
|
DisplayGUIOptnsClick:
|
||||||
|
|||||||
@@ -4512,9 +4512,7 @@ DisplayGameOptns:
|
|||||||
GUIOuttextwin2 9,9,190,GUIGameOptnsTextQ
|
GUIOuttextwin2 9,9,190,GUIGameOptnsTextQ
|
||||||
GUIOuttextwin2 9,9+52,190,GUIGameOptnsTextR
|
GUIOuttextwin2 9,9+52,190,GUIGameOptnsTextR
|
||||||
GUIOuttextwin2 9,9+160,180,GUIGameOptnsTextU
|
GUIOuttextwin2 9,9+160,180,GUIGameOptnsTextU
|
||||||
%ifdef __WIN32__
|
|
||||||
GUIOuttextwin2 9,137,190,GUIGameOptnsTextV
|
GUIOuttextwin2 9,137,190,GUIGameOptnsTextV
|
||||||
%endif
|
|
||||||
|
|
||||||
mov byte[GUIGameOptnsColA],163
|
mov byte[GUIGameOptnsColA],163
|
||||||
mov byte[GUIGameOptnsColB],217
|
mov byte[GUIGameOptnsColB],217
|
||||||
@@ -4620,9 +4618,7 @@ DisplayGameOptns:
|
|||||||
GUIOuttextwin2 9,8,189,GUIGameOptnsTextQ
|
GUIOuttextwin2 9,8,189,GUIGameOptnsTextQ
|
||||||
GUIOuttextwin2 9,8+52,189,GUIGameOptnsTextR
|
GUIOuttextwin2 9,8+52,189,GUIGameOptnsTextR
|
||||||
GUIOuttextwin2 9,8+160,179,GUIGameOptnsTextU
|
GUIOuttextwin2 9,8+160,179,GUIGameOptnsTextU
|
||||||
%ifdef __WIN32__
|
|
||||||
GUIOuttextwin2 9,136,189,GUIGameOptnsTextV
|
GUIOuttextwin2 9,136,189,GUIGameOptnsTextV
|
||||||
%endif
|
|
||||||
|
|
||||||
; Draw black boxes
|
; Draw black boxes
|
||||||
DGOptnsDrawBox 27,24,[KeyBGDisble0]
|
DGOptnsDrawBox 27,24,[KeyBGDisble0]
|
||||||
@@ -4675,9 +4671,7 @@ DisplayGameOptns:
|
|||||||
DGOptnsDrawBox 8+114+78,178,[KeyQuickClock]
|
DGOptnsDrawBox 8+114+78,178,[KeyQuickClock]
|
||||||
DGOptnsDrawBox 8+25,188,[KeyQuickChat]
|
DGOptnsDrawBox 8+25,188,[KeyQuickChat]
|
||||||
DGOptnsDrawBox 8+57+45,188,[KeyQuickSnapShot]
|
DGOptnsDrawBox 8+57+45,188,[KeyQuickSnapShot]
|
||||||
%ifdef __WIN32__
|
DGOptnsDrawBox 8+108+70,188,[KeyQuickSaveSPC]
|
||||||
DGOptnsDrawBox 8+108+70,188,[KeyQuickMinimize]
|
|
||||||
%endif
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
GUIGameOptnsColA db 0
|
GUIGameOptnsColA db 0
|
||||||
@@ -4713,7 +4707,7 @@ GUIGameOptnsTextR db 'SNAPSHOT',0
|
|||||||
GUIGameOptnsTextS db 'REWIND KEY',0
|
GUIGameOptnsTextS db 'REWIND KEY',0
|
||||||
GUIGameOptnsTextT db 'SLOWDWN KEY',0
|
GUIGameOptnsTextT db 'SLOWDWN KEY',0
|
||||||
GUIGameOptnsTextU db 'CLOCK',0
|
GUIGameOptnsTextU db 'CLOCK',0
|
||||||
GUIGameOptnsTextV db 'MINIMIZE',0
|
GUIGameOptnsTextV db 'SAVE SPC',0
|
||||||
GUIGameOptnsTextX db 'DISPLAY FPS',0
|
GUIGameOptnsTextX db 'DISPLAY FPS',0
|
||||||
|
|
||||||
DisplayGUIOptns:
|
DisplayGUIOptns:
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ EXTSYM spcon,vesa2_bpos,vesa2_clbit,vesa2_gpos,vesa2_rpos,vesa2selec
|
|||||||
EXTSYM vidbuffer,spritetablea,sprlefttot,newengen,spcextraram,resolutn
|
EXTSYM vidbuffer,spritetablea,sprlefttot,newengen,spcextraram,resolutn
|
||||||
EXTSYM Open_File,Close_File,Read_File,Write_File,Create_File,Get_Key,Get_Date
|
EXTSYM Open_File,Close_File,Read_File,Write_File,Create_File,Get_Key,Get_Date
|
||||||
EXTSYM continueprognokeys,ForceNonTransp,GUIOn,Check_Key,JoyRead
|
EXTSYM continueprognokeys,ForceNonTransp,GUIOn,Check_Key,JoyRead
|
||||||
EXTSYM GetScreen, SSKeyPressed, StopSound, StartSound
|
EXTSYM GetScreen,SSKeyPressed,SaveSPCKeyPressed,StopSound,StartSound
|
||||||
EXTSYM ExecExitOkay,t1cc
|
EXTSYM ExecExitOkay,t1cc
|
||||||
EXTSYM Clear2xSaIBuffer
|
EXTSYM Clear2xSaIBuffer
|
||||||
EXTSYM romdata,romtype,ScreenShotFormat
|
EXTSYM romdata,romtype,ScreenShotFormat
|
||||||
@@ -158,6 +158,8 @@ NEWSYM showmenu
|
|||||||
call savepcx
|
call savepcx
|
||||||
jmp .nopalwrite
|
jmp .nopalwrite
|
||||||
.nosskey
|
.nosskey
|
||||||
|
cmp byte[SaveSPCKeyPressed],1
|
||||||
|
je near .savespckey
|
||||||
test byte[pressed+14],1
|
test byte[pressed+14],1
|
||||||
jz .nof12
|
jz .nof12
|
||||||
call savepcx
|
call savepcx
|
||||||
@@ -331,6 +333,7 @@ NEWSYM showmenu
|
|||||||
.nofps
|
.nofps
|
||||||
cmp dword[menucloc],20*288
|
cmp dword[menucloc],20*288
|
||||||
jne near .nospcsave
|
jne near .nospcsave
|
||||||
|
.savespckey
|
||||||
cmp byte[spcon],0
|
cmp byte[spcon],0
|
||||||
je .nospc
|
je .nospc
|
||||||
cmp byte[newengen],1
|
cmp byte[newengen],1
|
||||||
@@ -380,6 +383,10 @@ NEWSYM showmenu
|
|||||||
mov eax,[MsgCount]
|
mov eax,[MsgCount]
|
||||||
mov [MessageOn],eax
|
mov [MessageOn],eax
|
||||||
.nosnddmp
|
.nosnddmp
|
||||||
|
cmp byte[SaveSPCKeyPressed],1
|
||||||
|
jne .exitloop
|
||||||
|
mov byte[SaveSPCKeyPressed],0
|
||||||
|
jmp .nopalwrite
|
||||||
.exitloop
|
.exitloop
|
||||||
call GUIUnBuffer
|
call GUIUnBuffer
|
||||||
mov al,[newengen]
|
mov al,[newengen]
|
||||||
|
|||||||
Reference in New Issue
Block a user