aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sci.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/sci.h')
-rw-r--r--engines/sci/sci.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/sci/sci.h b/engines/sci/sci.h
index 31e8631fa8..c6a251cb7b 100644
--- a/engines/sci/sci.h
+++ b/engines/sci/sci.h
@@ -154,6 +154,15 @@ private:
OSystem *_system;
};
+
+/**
+ * Global instance of the SciEngine class, similar to g_engine.
+ * This is a hackish way to make all central components available
+ * everywhere. Ideally, we would get rid of this again in the future,
+ * but for now it's a pragmatic and simple way to achieve the goal.
+ */
+extern SciEngine *g_sci;
+
/**
* Convenience function to obtain the active SCI version.
*/