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

@@ -30,7 +30,7 @@ EXTSYM StateBackup
EXTSYM ADSRGAINSwitch,FPUCopy,ScreenScale,SoundQuality
EXTSYM debugger,pl1contrl,pl2contrl,romtype,smallscreence
EXTSYM smallscreenon,spcon
EXTSYM statefileloc,LatestSave
EXTSYM statefileloc,LatestSave,firstsaveinc
EXTSYM Create_File,Delete_File,Open_File,Get_File_Date,Close_File,Change_Dir,Get_Dir
EXTSYM romloadskip
EXTSYM cfgloadgdir,cfgloadsdir
@@ -1224,10 +1224,11 @@ NEWSYM makeextension
mov [fnames],ah
mov [fnamest],ah
%ifdef __LINUX__
pushad
call GetFilename
popad
pushad
call GetFilename
popad
%endif
mov byte[firstsaveinc],1
cmp byte[LatestSave],1
je .latestsave
ret