aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authoranotherguest2013-12-06 08:31:08 +0100
committeranotherguest2013-12-06 08:31:08 +0100
commitd9c8cb71180efe12c4ee67eec03d84e4a0863f30 (patch)
tree315718eecaa535d730cfb132ec863297f13085e9 /backends
parent6cc047f8ebd11c9c078dd49a967b43ec0e58ad61 (diff)
parent1c4685a5d034ffc41b209fef5d46b220d8405606 (diff)
downloadscummvm-rg350-d9c8cb71180efe12c4ee67eec03d84e4a0863f30.tar.gz
scummvm-rg350-d9c8cb71180efe12c4ee67eec03d84e4a0863f30.tar.bz2
scummvm-rg350-d9c8cb71180efe12c4ee67eec03d84e4a0863f30.zip
Merge branch 'master' of github.com:scummvm/scummvm
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/null/null.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/backends/platform/null/null.cpp b/backends/platform/null/null.cpp
index 9e05539799..29bf9acacd 100644
--- a/backends/platform/null/null.cpp
+++ b/backends/platform/null/null.cpp
@@ -20,12 +20,23 @@
*
*/
+// We use some stdio.h functionality here thus we need to allow some
+// symbols. Alternatively, we could simply allow everything by defining
+// FORBIDDEN_SYMBOL_ALLOW_ALL
+#define FORBIDDEN_SYMBOL_EXCEPTION_FILE
+#define FORBIDDEN_SYMBOL_EXCEPTION_stdout
+#define FORBIDDEN_SYMBOL_EXCEPTION_stderr
+#define FORBIDDEN_SYMBOL_EXCEPTION_fputs
+
#include "backends/modular-backend.h"
#include "base/main.h"
#if defined(USE_NULL_DRIVER)
#include "backends/saves/default/default-saves.h"
#include "backends/timer/default/default-timer.h"
+#include "backends/events/default/default-events.h"
+#include "backends/mutex/null/null-mutex.h"
+#include "backends/graphics/null/null-graphics.h"
#include "audio/mixer_intern.h"
#include "common/scummsys.h"
@@ -40,13 +51,14 @@
#include "backends/fs/windows/windows-fs-factory.h"
#endif
-class OSystem_NULL : public ModularBackend {
+class OSystem_NULL : public ModularBackend, Common::EventSource {
public:
OSystem_NULL();
virtual ~OSystem_NULL();
virtual void initBackend();
+ virtual Common::EventSource *getDefaultEventSource() { return this; }
virtual bool pollEvent(Common::Event &event);
virtual uint32 getMillis(bool skipRecord = false);
@@ -92,7 +104,7 @@ bool OSystem_NULL::pollEvent(Common::Event &event) {
return false;
}
-uint32 OSystem_NULL::getMillis() {
+uint32 OSystem_NULL::getMillis(bool skipRecord) {
return 0;
}