aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-06-15 18:56:16 +0200
committerEinar Johan Trøan Sømåen2012-06-15 18:56:16 +0200
commit3d49eb16058c4e5a5fb3889b8bc89546c43891b2 (patch)
tree233e0ca447f2fbf97c4b0362b0113e58133b3f62
parent4c1909db9a2b7e17a338eba6d144d530a59190f1 (diff)
downloadscummvm-rg350-3d49eb16058c4e5a5fb3889b8bc89546c43891b2.tar.gz
scummvm-rg350-3d49eb16058c4e5a5fb3889b8bc89546c43891b2.tar.bz2
scummvm-rg350-3d49eb16058c4e5a5fb3889b8bc89546c43891b2.zip
WINTERMUTE: Add a global g_wintermute.
-rw-r--r--engines/wintermute/wintermute.cpp4
-rw-r--r--engines/wintermute/wintermute.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/wintermute/wintermute.cpp b/engines/wintermute/wintermute.cpp
index ed8054885d..7fa59930d5 100644
--- a/engines/wintermute/wintermute.cpp
+++ b/engines/wintermute/wintermute.cpp
@@ -41,6 +41,8 @@
namespace WinterMute {
+WinterMuteEngine *g_wintermute;
+
WinterMuteEngine::WinterMuteEngine(OSystem *syst)
: Engine(syst) {
// Put your engine in a sane state, but do nothing big yet;
@@ -62,6 +64,8 @@ WinterMuteEngine::WinterMuteEngine(OSystem *syst)
debug("WinterMuteEngine::WinterMuteEngine");
_game = NULL;
+
+ g_wintermute = this;
}
WinterMuteEngine::~WinterMuteEngine() {
diff --git a/engines/wintermute/wintermute.h b/engines/wintermute/wintermute.h
index 1a03de5553..015f31c2bb 100644
--- a/engines/wintermute/wintermute.h
+++ b/engines/wintermute/wintermute.h
@@ -62,6 +62,8 @@ public:
virtual ~Console(void) {}
};
+extern WinterMuteEngine *g_wintermute;
+
} // End of namespace Wintermute
#endif