diff options
author | Max Horn | 2011-06-08 14:29:22 +0200 |
---|---|---|
committer | Max Horn | 2011-06-08 14:29:22 +0200 |
commit | fce7f90a94165158ea93d5969d795ad5a565847c (patch) | |
tree | 7599877ec230f7d1b8af0b17846835a950d29410 /backends/base-backend.cpp | |
parent | d670b4bb561bdb935c6e574df2ed1ac478375878 (diff) | |
download | scummvm-rg350-fce7f90a94165158ea93d5969d795ad5a565847c.tar.gz scummvm-rg350-fce7f90a94165158ea93d5969d795ad5a565847c.tar.bz2 scummvm-rg350-fce7f90a94165158ea93d5969d795ad5a565847c.zip |
BACKENDS: Shuffle backends class hierarchy and module initialization
Diffstat (limited to 'backends/base-backend.cpp')
-rw-r--r-- | backends/base-backend.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/backends/base-backend.cpp b/backends/base-backend.cpp index b5c1852b7d..8d22ab732d 100644 --- a/backends/base-backend.cpp +++ b/backends/base-backend.cpp @@ -29,6 +29,11 @@ #include "backends/events/default/default-events.h" #endif +#ifndef DISABLE_DEFAULT_AUDIOCD_MANAGER +#include "backends/audiocd/default/default-audiocd.h" +#endif + + #include "gui/message.h" void BaseBackend::displayMessageOnOSD(const char *msg) { @@ -41,7 +46,13 @@ void BaseBackend::initBackend() { // Init Event manager #ifndef DISABLE_DEFAULT_EVENT_MANAGER if (!_eventManager) - _eventManager = new DefaultEventManager(this); + _eventManager = new DefaultEventManager(getDefaultEventSource()); +#endif + + // Init audio CD manager +#ifndef DISABLE_DEFAULT_AUDIOCD_MANAGER + if (!_audiocdManager) + _audiocdManager = new DefaultAudioCDManager(); #endif OSystem::initBackend(); |