From 3d49eb16058c4e5a5fb3889b8bc89546c43891b2 Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Fri, 15 Jun 2012 18:56:16 +0200 Subject: WINTERMUTE: Add a global g_wintermute. --- engines/wintermute/wintermute.cpp | 4 ++++ engines/wintermute/wintermute.h | 2 ++ 2 files changed, 6 insertions(+) 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 -- cgit v1.2.3