Merged revision(s) 5152 from trunk/desmume/src:
fix small mistake in r5121 that whacks all battery saves when making a savestate ........
This commit is contained in:
parent
5bfe553a8b
commit
4fe116b423
|
@ -123,7 +123,7 @@ bool BackupDevice::save_state(EMUFILE* os)
|
||||||
std::vector<u8> data(fsize);
|
std::vector<u8> data(fsize);
|
||||||
fpMC->fseek(0, SEEK_SET);
|
fpMC->fseek(0, SEEK_SET);
|
||||||
if(data.size()!=0)
|
if(data.size()!=0)
|
||||||
fpMC->fwrite((char *)&data[0], fsize);
|
fpMC->fread((char *)&data[0], fsize);
|
||||||
|
|
||||||
u32 version = 5;
|
u32 version = 5;
|
||||||
//v0
|
//v0
|
||||||
|
|
Loading…
Reference in New Issue