Port of statesaver to C, new resolution for SDL port, fixed bilinear filter in GUI

This commit is contained in:
grinvader
2005-01-26 01:00:54 +00:00
parent 908edb5c21
commit d19abb9283
18 changed files with 691 additions and 450 deletions

View File

@@ -3677,7 +3677,9 @@ GUIProcStates:
popad
cmp byte[GUIStatesText5],1
je .loadstate
pushad
call statesaver
popad
jmp .changedir
.loadstate
cmp byte[CNetType],20
@@ -3698,9 +3700,9 @@ SaveSecondState:
mov ebx,[statefileloc]
mov al,[fnamest+ebx]
mov byte[fnamest+ebx],'s'
push eax
pushad
call statesaver
pop eax
popad
mov ebx,[statefileloc]
mov [fnamest+ebx],al
call ChangetoLOADdir

View File

@@ -62,7 +62,9 @@ MovieRecord:
mov byte[NoPictureSave],1
cmp byte[MovieProcessing],0
jne .nostatesaver
pushad
call statesaver
popad
.nostatesaver
mov byte[NoPictureSave],0
mov edx,fnamest+1

View File

@@ -18,12 +18,6 @@
;along with this program; if not, write to the Free Software
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
; Tools for the GUI (string functions are also used elsewhere)
NEWSYM CopyString

View File

@@ -857,7 +857,9 @@ NEWSYM savespcdata
ChangeDir SPCPath
sub dword[spcPCRam],spcRam
sub dword[spcRamDP],spcRam
pushad
call PrepareSaveState
popad
; Copy from fnames to .spcfname, replacing .srm with .spc
mov esi,fnames+1
mov edi,.spcfname
@@ -1009,7 +1011,9 @@ NEWSYM savespcdata
add dword[spcPCRam],spcRam
add dword[spcRamDP],spcRam
pushad
call ResetState
popad
%ifdef SPCDUMP