From e58fb847079438f0d78415aef6dafc151e0acdc8 Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Sat, 26 Aug 2017 15:32:14 +0100 Subject: [PATCH] Update remaining stub versions of mic_savestate/loadstate. 11cf901336d77574e0f2c3482e130e05fa5f03e4 changed most of these but missed these three. --- desmume/src/frontend/posix/shared/mic_alsa.cpp | 8 ++++---- desmume/src/frontend/posix/shared/mic_openal.cpp | 8 ++++---- desmume/src/mic.cpp | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/desmume/src/frontend/posix/shared/mic_alsa.cpp b/desmume/src/frontend/posix/shared/mic_alsa.cpp index 8316ff7a7..0e0263cba 100644 --- a/desmume/src/frontend/posix/shared/mic_alsa.cpp +++ b/desmume/src/frontend/posix/shared/mic_alsa.cpp @@ -162,13 +162,13 @@ u8 Mic_ReadSample() } /* FIXME: stub! */ -void mic_savestate(EMUFILE* os) +void mic_savestate(EMUFILE &os) { - write32le((u32)(-1),os); + os.write_32LE(-1); } -bool mic_loadstate(EMUFILE* is, int size) +bool mic_loadstate(EMUFILE &is, int size) { - is->fseek(size, SEEK_CUR); + is.fseek(size, SEEK_CUR); return TRUE; } diff --git a/desmume/src/frontend/posix/shared/mic_openal.cpp b/desmume/src/frontend/posix/shared/mic_openal.cpp index 9ebfd9e6e..264cb672e 100644 --- a/desmume/src/frontend/posix/shared/mic_openal.cpp +++ b/desmume/src/frontend/posix/shared/mic_openal.cpp @@ -154,14 +154,14 @@ u8 Mic_ReadSample() return ret; } -void mic_savestate(EMUFILE* os) +void mic_savestate(EMUFILE &os) { - write32le(-1,os); + os.write_32LE(-1); } -bool mic_loadstate(EMUFILE* is, int size) +bool mic_loadstate(EMUFILE &is, int size) { - is->fseek(size, SEEK_CUR); + is.fseek(size, SEEK_CUR); return TRUE; } diff --git a/desmume/src/mic.cpp b/desmume/src/mic.cpp index d0b554e91..9eeea629e 100644 --- a/desmume/src/mic.cpp +++ b/desmume/src/mic.cpp @@ -197,7 +197,7 @@ void Mic_DoNoise(BOOL noise) void mic_savestate(EMUFILE &os) { - write_32LE(-1,os); + os.write_32LE(-1); } bool mic_loadstate(EMUFILE &is, int size)