diff options
author | Max Horn | 2010-02-13 17:42:49 +0000 |
---|---|---|
committer | Max Horn | 2010-02-13 17:42:49 +0000 |
commit | ac4d325e0d61b649026a5f5414f749697b285ccc (patch) | |
tree | c58f62596d050be62e98180c0255e7998a9a62e4 /engines/sci/sci.h | |
parent | 24fd77eb242c4d90e8c3a3b0bcc5f0c48a4dc77f (diff) | |
download | scummvm-rg350-ac4d325e0d61b649026a5f5414f749697b285ccc.tar.gz scummvm-rg350-ac4d325e0d61b649026a5f5414f749697b285ccc.tar.bz2 scummvm-rg350-ac4d325e0d61b649026a5f5414f749697b285ccc.zip |
SCI: Add global g_sci pointer to the active SciEngine instance
svn-id: r48046
Diffstat (limited to 'engines/sci/sci.h')
-rw-r--r-- | engines/sci/sci.h | 9 |
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. */ |