aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2007-07-01 20:29:28 +0000
committerMax Horn2007-07-01 20:29:28 +0000
commit8fcece52ac068eb0b89513ffe8c9dc811016ce4a (patch)
tree7297b10fe71ece13c01a58e1abd8ee18956fdfe4
parent9f6922ddd2801a7099084f1a70e7f09e70821b2f (diff)
downloadscummvm-rg350-8fcece52ac068eb0b89513ffe8c9dc811016ce4a.tar.gz
scummvm-rg350-8fcece52ac068eb0b89513ffe8c9dc811016ce4a.tar.bz2
scummvm-rg350-8fcece52ac068eb0b89513ffe8c9dc811016ce4a.zip
Patch #1595026: engine init/shutdown OSystem methods
svn-id: r27838
-rw-r--r--base/main.cpp6
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();