Added quick key for saving SPC data
This commit is contained in:
@@ -592,7 +592,7 @@ NEWSYM ExclusiveSound, db 0
|
||||
NEWSYM DisableScreenSaver, db 0
|
||||
NEWSYM TrapMouseCursor, db 1
|
||||
NEWSYM KeyQuickClock, dd 0
|
||||
NEWSYM KeyQuickMinimize, dd 0
|
||||
NEWSYM KeyQuickSaveSPC, dd 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 SoundInterpType, db 2
|
||||
|
||||
@@ -2729,9 +2729,7 @@ DisplayGameOptnsClick:
|
||||
DGOptnsProcBox 8+114+78,178,[KeyQuickClock]
|
||||
DGOptnsProcBox 8+25,188,[KeyQuickChat]
|
||||
DGOptnsProcBox 8+57+45,188,[KeyQuickSnapShot]
|
||||
%ifdef __WIN32__
|
||||
DGOptnsProcBox 8+108+70,188,[KeyQuickMinimize]
|
||||
%endif
|
||||
DGOptnsProcBox 8+108+70,188,[KeyQuickSaveSPC]
|
||||
ret
|
||||
|
||||
DisplayGUIOptnsClick:
|
||||
|
||||
@@ -4512,9 +4512,7 @@ DisplayGameOptns:
|
||||
GUIOuttextwin2 9,9,190,GUIGameOptnsTextQ
|
||||
GUIOuttextwin2 9,9+52,190,GUIGameOptnsTextR
|
||||
GUIOuttextwin2 9,9+160,180,GUIGameOptnsTextU
|
||||
%ifdef __WIN32__
|
||||
GUIOuttextwin2 9,137,190,GUIGameOptnsTextV
|
||||
%endif
|
||||
|
||||
mov byte[GUIGameOptnsColA],163
|
||||
mov byte[GUIGameOptnsColB],217
|
||||
@@ -4620,9 +4618,7 @@ DisplayGameOptns:
|
||||
GUIOuttextwin2 9,8,189,GUIGameOptnsTextQ
|
||||
GUIOuttextwin2 9,8+52,189,GUIGameOptnsTextR
|
||||
GUIOuttextwin2 9,8+160,179,GUIGameOptnsTextU
|
||||
%ifdef __WIN32__
|
||||
GUIOuttextwin2 9,136,189,GUIGameOptnsTextV
|
||||
%endif
|
||||
|
||||
; Draw black boxes
|
||||
DGOptnsDrawBox 27,24,[KeyBGDisble0]
|
||||
@@ -4675,9 +4671,7 @@ DisplayGameOptns:
|
||||
DGOptnsDrawBox 8+114+78,178,[KeyQuickClock]
|
||||
DGOptnsDrawBox 8+25,188,[KeyQuickChat]
|
||||
DGOptnsDrawBox 8+57+45,188,[KeyQuickSnapShot]
|
||||
%ifdef __WIN32__
|
||||
DGOptnsDrawBox 8+108+70,188,[KeyQuickMinimize]
|
||||
%endif
|
||||
DGOptnsDrawBox 8+108+70,188,[KeyQuickSaveSPC]
|
||||
ret
|
||||
|
||||
GUIGameOptnsColA db 0
|
||||
@@ -4713,7 +4707,7 @@ GUIGameOptnsTextR db 'SNAPSHOT',0
|
||||
GUIGameOptnsTextS db 'REWIND KEY',0
|
||||
GUIGameOptnsTextT db 'SLOWDWN KEY',0
|
||||
GUIGameOptnsTextU db 'CLOCK',0
|
||||
GUIGameOptnsTextV db 'MINIMIZE',0
|
||||
GUIGameOptnsTextV db 'SAVE SPC',0
|
||||
GUIGameOptnsTextX db 'DISPLAY FPS',0
|
||||
|
||||
DisplayGUIOptns:
|
||||
|
||||
@@ -27,7 +27,7 @@ EXTSYM spcon,vesa2_bpos,vesa2_clbit,vesa2_gpos,vesa2_rpos,vesa2selec
|
||||
EXTSYM vidbuffer,spritetablea,sprlefttot,newengen,spcextraram,resolutn
|
||||
EXTSYM Open_File,Close_File,Read_File,Write_File,Create_File,Get_Key,Get_Date
|
||||
EXTSYM continueprognokeys,ForceNonTransp,GUIOn,Check_Key,JoyRead
|
||||
EXTSYM GetScreen, SSKeyPressed, StopSound, StartSound
|
||||
EXTSYM GetScreen,SSKeyPressed,SaveSPCKeyPressed,StopSound,StartSound
|
||||
EXTSYM ExecExitOkay,t1cc
|
||||
EXTSYM Clear2xSaIBuffer
|
||||
EXTSYM romdata,romtype,ScreenShotFormat
|
||||
@@ -158,6 +158,8 @@ NEWSYM showmenu
|
||||
call savepcx
|
||||
jmp .nopalwrite
|
||||
.nosskey
|
||||
cmp byte[SaveSPCKeyPressed],1
|
||||
je near .savespckey
|
||||
test byte[pressed+14],1
|
||||
jz .nof12
|
||||
call savepcx
|
||||
@@ -331,6 +333,7 @@ NEWSYM showmenu
|
||||
.nofps
|
||||
cmp dword[menucloc],20*288
|
||||
jne near .nospcsave
|
||||
.savespckey
|
||||
cmp byte[spcon],0
|
||||
je .nospc
|
||||
cmp byte[newengen],1
|
||||
@@ -380,6 +383,10 @@ NEWSYM showmenu
|
||||
mov eax,[MsgCount]
|
||||
mov [MessageOn],eax
|
||||
.nosnddmp
|
||||
cmp byte[SaveSPCKeyPressed],1
|
||||
jne .exitloop
|
||||
mov byte[SaveSPCKeyPressed],0
|
||||
jmp .nopalwrite
|
||||
.exitloop
|
||||
call GUIUnBuffer
|
||||
mov al,[newengen]
|
||||
|
||||
Reference in New Issue
Block a user