From 8fcece52ac068eb0b89513ffe8c9dc811016ce4a Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 1 Jul 2007 20:29:28 +0000 Subject: Patch #1595026: engine init/shutdown OSystem methods svn-id: r27838 --- base/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'base') 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(); -- cgit v1.2.3