aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-07-06 07:31:28 +0300
committerEugene Sandulenko2013-07-06 07:31:28 +0300
commit3490091ba2aadc3b812725dd2073f6b9dbbd9254 (patch)
treeda86e9250b820557cfa8267f3f18d2054a947a68
parenta0b6046496582a1ce216bf67bd1eb19121eeab58 (diff)
downloadscummvm-rg350-3490091ba2aadc3b812725dd2073f6b9dbbd9254.tar.gz
scummvm-rg350-3490091ba2aadc3b812725dd2073f6b9dbbd9254.tar.bz2
scummvm-rg350-3490091ba2aadc3b812725dd2073f6b9dbbd9254.zip
RECORDER: Fix tests compilation. Patch by D G Turner
-rw-r--r--common/system.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/system.cpp b/common/system.cpp
index b40072afad..d86b5b2b81 100644
--- a/common/system.cpp
+++ b/common/system.cpp
@@ -30,7 +30,9 @@
#include "common/taskbar.h"
#include "common/updates.h"
#include "common/textconsole.h"
+#ifdef ENABLE_EVENTRECORDER
#include "gui/EventRecorder.h"
+#endif
#include "backends/audiocd/default/default-audiocd.h"
#include "backends/fs/fs-factory.h"
@@ -159,5 +161,9 @@ Common::TimerManager *OSystem::getTimerManager() {
}
Common::SaveFileManager *OSystem::getSavefileManager() {
+#ifdef ENABLE_EVENTRECORDER
return g_eventRec.getSaveManager(_savefileManager);
+#else
+ return _savefileManager;
+#endif
}