From 6340db81508d77953eb4a3d8ae685d7cec93ef4e Mon Sep 17 00:00:00 2001 From: riccardom Date: Mon, 12 Jan 2009 20:48:31 +0000 Subject: [PATCH] Move stub mic implementation for not win32 platforms to a separate file. --- desmume/src/Makefile.am | 3 ++- desmume/src/mic.cpp | 23 +++++++++++++++++++++++ desmume/src/mic.h | 12 ------------ 3 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 desmume/src/mic.cpp diff --git a/desmume/src/Makefile.am b/desmume/src/Makefile.am index 739d97c02..b1da43101 100644 --- a/desmume/src/Makefile.am +++ b/desmume/src/Makefile.am @@ -45,7 +45,8 @@ libdesmume_a_SOURCES = \ utils/decrypt/crc.cpp utils/decrypt/crc.h utils/decrypt/decrypt.cpp \ utils/decrypt/decrypt.h utils/decrypt/header.cpp utils/decrypt/header.h \ addons.c addons.h \ - addons/compactFlash.cpp addons/gbagame.cpp addons/none.cpp addons/rumblepak.cpp + addons/compactFlash.cpp addons/gbagame.cpp addons/none.cpp addons/rumblepak.cpp \ + mic.cpp mic.h if HAVE_GDB_STUB libdesmume_a_SOURCES += gdbstub.h endif diff --git a/desmume/src/mic.cpp b/desmume/src/mic.cpp new file mode 100644 index 000000000..687a79ffc --- /dev/null +++ b/desmume/src/mic.cpp @@ -0,0 +1,23 @@ +#ifndef WIN32 + +#include "types.h" +#include "mic.h" + +BOOL Mic_Init() +{ + return TRUE; +} + +void Mic_Reset() +{ +} + +void Mic_DeInit() +{ +} + +u8 Mic_ReadSample() { + return 0; +} + +#endif diff --git a/desmume/src/mic.h b/desmume/src/mic.h index 8a2be7a2b..6d793a22d 100644 --- a/desmume/src/mic.h +++ b/desmume/src/mic.h @@ -1,21 +1,9 @@ #ifndef MIC_H #define MIC_H -#ifdef WIN32 - BOOL Mic_Init(); void Mic_Reset(); void Mic_DeInit(); u8 Mic_ReadSample(); -#else -/* TODO : mic support for other platforms */ - -BOOL Mic_Init() { return TRUE; } -void Mic_Reset() { } -void Mic_DeInit() { } -u8 Mic_ReadSample() { return 0; } - -#endif - #endif