* fix fds bug; .sav file was being opened read-only and causing "error reading auxillary FDS file"

* someone please test this change on win32 to ensure nothing is broken
This commit is contained in:
punkrockguy318 2010-02-24 08:48:05 +00:00
parent e0988eac20
commit bd1d923b78
1 changed files with 2 additions and 2 deletions

View File

@ -813,7 +813,7 @@ if (!disableBatteryLoading)
memcpy(diskdatao[x],diskdata[x],65500); memcpy(diskdatao[x],diskdata[x],65500);
} }
if((tp=FCEU_fopen(fn,0,"rb",0))) if((tp=FCEU_fopen(fn,0,"wb",0)))
{ {
FreeFDSMemory(); FreeFDSMemory();
if(!SubLoad(tp)) if(!SubLoad(tp))