diff --git a/desmume/src/mic.cpp b/desmume/src/mic.cpp index 1049eb174..50ce31f92 100644 --- a/desmume/src/mic.cpp +++ b/desmume/src/mic.cpp @@ -60,7 +60,7 @@ void mic_savestate(EMUFILE* os) bool mic_loadstate(EMUFILE* is, int size) { - is->seekg(size, std::ios::cur); + is->fseek(size, SEEK_CUR); return TRUE; } diff --git a/desmume/src/mic_alsa.cpp b/desmume/src/mic_alsa.cpp index 28a2f432e..62605a903 100644 --- a/desmume/src/mic_alsa.cpp +++ b/desmume/src/mic_alsa.cpp @@ -152,11 +152,11 @@ u8 Mic_ReadSample() /* FIXME: stub! */ void mic_savestate(EMUFILE* os) { - write32le(0,os); + write32le((u32)(-1),os); } bool mic_loadstate(EMUFILE* is, int size) { - is->fseek(size-4, SEEK_CUR); + is->fseek(size, SEEK_CUR); return TRUE; }