Fixed SRAM Check+Save once and for all.

This commit is contained in:
jbo_85
2005-09-19 14:55:59 +00:00
parent 84a8b13e67
commit 375e60dd7c

View File

@@ -49,7 +49,7 @@ EXTSYM oamram,objhipr,objptr,objptrn,objsize1,objsize2,spritetablea,sprleftpr
EXTSYM sprlefttot,vcache4b,objadds1,objadds2,objmovs1,objmovs2,tltype4b EXTSYM sprlefttot,vcache4b,objadds1,objadds2,objmovs1,objmovs2,tltype4b
EXTSYM vidmemch4,vram,bgptr,bgptrc,bgptrd,curtileptr,vcache2b,vcache8b,vidmemch8 EXTSYM vidmemch4,vram,bgptr,bgptrc,bgptrd,curtileptr,vcache2b,vcache8b,vidmemch8
EXTSYM offsetmshl,NextLineCache,tltype2b,tltype8b,objwlrpos,snesinputdefault EXTSYM offsetmshl,NextLineCache,tltype2b,tltype8b,objwlrpos,snesinputdefault
EXTSYM cycleinputdevice,Change_Dir,LoadDrive,LoadDir,EmuSpeed,SDRatio,FFRatio EXTSYM cycleinputdevice,SRAMChdir,EmuSpeed,SDRatio,FFRatio
EXTSYM KeyResetSpeed,KeyEmuSpeedUp,KeyEmuSpeedDown,EMUPause EXTSYM KeyResetSpeed,KeyEmuSpeedUp,KeyEmuSpeedDown,EMUPause
; Process stuff & Cache sprites ; Process stuff & Cache sprites
@@ -290,9 +290,10 @@ NEWSYM cachevideo
jne .nofocussave jne .nofocussave
pushad pushad
call SaveSramData call SaveSramData
mov dl,[LoadDrive] popad
mov ebx,LoadDir ; change to sram dir
call Change_Dir pushad
call SRAMChdir
popad popad
jmp .nofocussave jmp .nofocussave
.nofocussaveb .nofocussaveb