diff options
author | Einar Johan Trøan Sømåen | 2012-06-15 18:56:16 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-15 18:56:16 +0200 |
commit | 3d49eb16058c4e5a5fb3889b8bc89546c43891b2 (patch) | |
tree | 233e0ca447f2fbf97c4b0362b0113e58133b3f62 | |
parent | 4c1909db9a2b7e17a338eba6d144d530a59190f1 (diff) | |
download | scummvm-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.cpp | 4 | ||||
-rw-r--r-- | engines/wintermute/wintermute.h | 2 |
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 |