From 0a07f61db04fb409a92852df1edf8eb797ea467c Mon Sep 17 00:00:00 2001 From: nitsuja Date: Fri, 28 Aug 2009 09:47:45 +0000 Subject: [PATCH] I'm pretty sure that won't quite work (further mic fixup) (for code that shouldn't even need to be here) --- desmume/src/mic.cpp | 2 +- desmume/src/mic_alsa.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }