aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/resource.h
diff options
context:
space:
mode:
authorFilippos Karapetis2010-05-29 14:03:08 +0000
committerFilippos Karapetis2010-05-29 14:03:08 +0000
commit6f056c6c98e6c32c1e18a731ca6296b9ee4b130a (patch)
tree171a49b04c32cc6794d5c0ccbdc6db0ca9748542 /engines/sci/resource.h
parent928eafcccf755859a86587e01b676d020baf4d85 (diff)
downloadscummvm-rg350-6f056c6c98e6c32c1e18a731ca6296b9ee4b130a.tar.gz
scummvm-rg350-6f056c6c98e6c32c1e18a731ca6296b9ee4b130a.tar.bz2
scummvm-rg350-6f056c6c98e6c32c1e18a731ca6296b9ee4b130a.zip
Added a method to the resource manager, to limit the places where script exports are accessed, since for SCI11 and newer exports can be functions and objects (first step in removing scriptRelocateExportsSci11(), which is a gross hack and it fails in QFG1VGA)
svn-id: r49308
Diffstat (limited to 'engines/sci/resource.h')
-rw-r--r--engines/sci/resource.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/sci/resource.h b/engines/sci/resource.h
index dbd99f633d..8147763f4f 100644
--- a/engines/sci/resource.h
+++ b/engines/sci/resource.h
@@ -296,6 +296,14 @@ public:
*/
Common::String findSierraGameId();
+ /**
+ * Finds the location of the game object from script 0
+ * @param addSci11ScriptOffset: Adjust the return value for SCI1.1 and newer
+ * games. Needs to be false when the heap is accessed directly inside
+ * findSierraGameId().
+ */
+ reg_t findGameObject(bool addSci11ScriptOffset = true);
+
protected:
// Maximum number of bytes to allow being allocated for resources
// Note: maxMemory will not be interpreted as a hard limit, only as a restriction