diff options
-rw-r--r-- | base/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp index 85e711bce1..d8239db6e4 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -203,6 +203,9 @@ static int runGame(const Plugin *plugin, OSystem &system, const Common::String & // the command line arugments here Common::enableSpecialDebugLevelList(edebuglevels); + // Inform backend that the engine is about to be run + system.engineInit(); + int result; // Init the engine (this might change the screen parameters) @@ -216,6 +219,9 @@ static int runGame(const Plugin *plugin, OSystem &system, const Common::String & // TODO: Set an error flag, notify user about the problem } + // Inform backend that the engine finished + system.engineDone(); + // We clear all debug levels again even though the engine should do it Common::clearAllSpecialDebugLevels(); |