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