From 5340df3faf9ee73bc1102ebb5f95c5d82c37df7f Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 13 Mar 2016 14:20:20 +0100 Subject: POSIX: Cleanup AudioCD manager creation. --- backends/platform/sdl/posix/posix.cpp | 7 ++++--- backends/platform/sdl/posix/posix.h | 3 --- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/backends/platform/sdl/posix/posix.cpp b/backends/platform/sdl/posix/posix.cpp index 3989bd0043..e2a642b288 100644 --- a/backends/platform/sdl/posix/posix.cpp +++ b/backends/platform/sdl/posix/posix.cpp @@ -243,12 +243,13 @@ bool OSystem_POSIX::displayLogFile() { return WIFEXITED(status) && WEXITSTATUS(status) == 0; } -#ifdef USE_LINUXCD AudioCDManager *OSystem_POSIX::createAudioCDManager() { +#ifdef USE_LINUXCD return createLinuxAudioCDManager(); -} - +#else + return OSystem_SDL::createAudioCDManager(); #endif +} #endif diff --git a/backends/platform/sdl/posix/posix.h b/backends/platform/sdl/posix/posix.h index 9f69bd227f..0514d30191 100644 --- a/backends/platform/sdl/posix/posix.h +++ b/backends/platform/sdl/posix/posix.h @@ -60,10 +60,7 @@ protected: virtual Common::WriteStream *createLogFile(); -#ifdef USE_LINUXCD - // Override createAudioCDManager() for Linux virtual AudioCDManager *createAudioCDManager(); -#endif }; #endif -- cgit v1.2.3