aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2007-07-01 20:28:57 +0000
committerMax Horn2007-07-01 20:28:57 +0000
commit9f6922ddd2801a7099084f1a70e7f09e70821b2f (patch)
tree649f3139d03e8a4aa5ede7c72d2b182bdc7658a3
parenta14485da5f1a809a8b49dc8acd4997313769d03d (diff)
downloadscummvm-rg350-9f6922ddd2801a7099084f1a70e7f09e70821b2f.tar.gz
scummvm-rg350-9f6922ddd2801a7099084f1a70e7f09e70821b2f.tar.bz2
scummvm-rg350-9f6922ddd2801a7099084f1a70e7f09e70821b2f.zip
Patch #1595026: engine init/shutdown OSystem methods
svn-id: r27837
-rw-r--r--common/system.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/system.h b/common/system.h
index 95f970d956..34f945642c 100644
--- a/common/system.h
+++ b/common/system.h
@@ -73,6 +73,18 @@ public:
*/
virtual void initBackend() { }
+ /**
+ * Allows the backend to perform engine specific init.
+ * Called just before the engine is run.
+ */
+ virtual void engineInit() { }
+
+ /**
+ * Allows the backend to perform engine specific de-init.
+ * Called after the engine finishes.
+ */
+ virtual void engineDone() { }
+
/** @name Feature flags */
//@{