diff options
author | Eugene Sandulenko | 2017-01-08 09:32:32 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-08 09:32:32 +0100 |
commit | 5f868a65b4102d6ddb67f7aba7b76645eeccc8b6 (patch) | |
tree | bb298351b1fed4040f0d2aa4983cb3adb04a2648 /engines/director | |
parent | e9d84a5abd39a78494db2f41e0412b55018401d4 (diff) | |
download | scummvm-rg350-5f868a65b4102d6ddb67f7aba7b76645eeccc8b6.tar.gz scummvm-rg350-5f868a65b4102d6ddb67f7aba7b76645eeccc8b6.tar.bz2 scummvm-rg350-5f868a65b4102d6ddb67f7aba7b76645eeccc8b6.zip |
DIRECTOR: Added g_director uglyness
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/director.cpp | 4 | ||||
-rw-r--r-- | engines/director/director.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp index 32358e4b6e..c21624168f 100644 --- a/engines/director/director.cpp +++ b/engines/director/director.cpp @@ -33,6 +33,8 @@ namespace Director { +DirectorEngine *g_director; + DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc), _rnd("director") { DebugMan.addDebugChannel(kDebugLingoExec, "lingoexec", "Lingo Execution"); @@ -41,6 +43,8 @@ DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gam DebugMan.addDebugChannel(kDebugImages, "images", "Image drawing"); DebugMan.addDebugChannel(kDebugText, "text", "Text rendering"); + g_director = this; + if (!_mixer->isReady()) error("Sound initialization failed"); diff --git a/engines/director/director.h b/engines/director/director.h index 300998bb78..7ec9608662 100644 --- a/engines/director/director.h +++ b/engines/director/director.h @@ -139,6 +139,8 @@ private: void testFont(); }; +extern DirectorEngine *g_director; + } // End of namespace Director #endif |