From 4fe116b4239018901528b9af055d9ef3f4a34303 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 5 Apr 2015 18:35:43 +0000 Subject: [PATCH] Merged revision(s) 5152 from trunk/desmume/src: fix small mistake in r5121 that whacks all battery saves when making a savestate ........ --- desmume/src/mc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/mc.cpp b/desmume/src/mc.cpp index 8187ae269..b5e865b03 100644 --- a/desmume/src/mc.cpp +++ b/desmume/src/mc.cpp @@ -123,7 +123,7 @@ bool BackupDevice::save_state(EMUFILE* os) std::vector 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