Code cleanup. Save location can now be edited in GUI. *nix can now correctly save in a location other than ~/.zsnes

This commit is contained in:
n-a-c-h
2005-01-10 02:21:51 +00:00
parent bcff1629aa
commit 1b62e9286f
16 changed files with 154 additions and 169 deletions

View File

@@ -54,7 +54,7 @@ EXTSYM nextmenupopup
EXTSYM MovieProcessing
EXTSYM MovieFileHand, PrintStr
EXTSYM OSExit,DosExit,InitDir,InitDrive,createnewcfg,fnames,gotoroot,previdmode
EXTSYM ramsize,sfxramdata,setaramdata,SETAEnable,sram,SRAMDrive,SRAMDir,welcome
EXTSYM ramsize,sfxramdata,setaramdata,SETAEnable,sram,SRAMChdir,welcome
; EXTSYM tempstore
EXTSYM printhex
%ifdef __MSDOS__
@@ -1429,9 +1429,9 @@ NEWSYM statesaver
; jmp .skipsaves
; Save State
%ifdef __LINUX__
mov dl,[SRAMDrive]
mov ebx,SRAMDir
call Change_Dir
pushad
call SRAMChdir
popad
%endif
mov edx,fnamest+1
call Create_File
@@ -1831,9 +1831,9 @@ NEWSYM loadstate
mov byte[multchange],1
clim
%ifdef __LINUX__
mov dl,[SRAMDrive]
mov ebx,SRAMDir
call Change_Dir
pushad
call SRAMChdir
popad
%endif
; Get the state number
mov ebx,[statefileloc]