diff options
author | David-John Willis | 2012-07-29 21:08:46 +0100 |
---|---|---|
committer | David-John Willis | 2012-07-29 21:15:28 +0100 |
commit | 9c2018c5a890c5276249f2b93be274a564efd7bb (patch) | |
tree | 53b69c84274d758315ff0de4fba1c4da28c11359 /backends/platform/openpandora/op-backend.cpp | |
parent | 3b6398cd40838b7b2679eb597d453e3e81b1e6ef (diff) | |
download | scummvm-rg350-9c2018c5a890c5276249f2b93be274a564efd7bb.tar.gz scummvm-rg350-9c2018c5a890c5276249f2b93be274a564efd7bb.tar.bz2 scummvm-rg350-9c2018c5a890c5276249f2b93be274a564efd7bb.zip |
OPENPANDORA: Start event manager after log files are setup (if needed).
Diffstat (limited to 'backends/platform/openpandora/op-backend.cpp')
-rw-r--r-- | backends/platform/openpandora/op-backend.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/backends/platform/openpandora/op-backend.cpp b/backends/platform/openpandora/op-backend.cpp index b2d53f9fb5..354aa24b24 100644 --- a/backends/platform/openpandora/op-backend.cpp +++ b/backends/platform/openpandora/op-backend.cpp @@ -63,15 +63,6 @@ void OSystem_OP::initBackend() { assert(!_inited); - // Create the events manager - if (_eventSource == 0) - _eventSource = new OPEventSource(); - - // Create the graphics manager - if (_graphicsManager == 0) { - _graphicsManager = new OPGraphicsManager(_eventSource); - } - /* Setup default save path to be workingdir/saves */ char savePath[PATH_MAX+1]; @@ -150,6 +141,15 @@ void OSystem_OP::initBackend() { /* Make sure SDL knows that we have a joystick we want to use. */ ConfMan.setInt("joystick_num", 0); + // Create the events manager + if (_eventSource == 0) + _eventSource = new OPEventSource(); + + // Create the graphics manager + if (_graphicsManager == 0) { + _graphicsManager = new OPGraphicsManager(_eventSource); + } + /* Pass to POSIX method to do the heavy lifting */ OSystem_POSIX::initBackend(); |