diff options
author | Lars Skovlund | 2010-11-18 17:04:00 +0000 |
---|---|---|
committer | Lars Skovlund | 2010-11-18 17:04:00 +0000 |
commit | c5252071db22b31cc83c2687f93606b79194efe6 (patch) | |
tree | 7d2866806624b7187854a32394f714d6bd1c1aa3 /engines/sci/engine/script.h | |
parent | 152e52d0156e443f8dc52bf2bddf9ef21a32f853 (diff) | |
download | scummvm-rg350-c5252071db22b31cc83c2687f93606b79194efe6.tar.gz scummvm-rg350-c5252071db22b31cc83c2687f93606b79194efe6.tar.bz2 scummvm-rg350-c5252071db22b31cc83c2687f93606b79194efe6.zip |
SCI3: Add proper support for the calle instruction
svn-id: r54327
Diffstat (limited to 'engines/sci/engine/script.h')
-rw-r--r-- | engines/sci/engine/script.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/sci/engine/script.h b/engines/sci/engine/script.h index 2d17dde5d4..03c470b4e0 100644 --- a/engines/sci/engine/script.h +++ b/engines/sci/engine/script.h @@ -206,10 +206,11 @@ public: * Validate whether the specified public function is exported by * the script in the specified segment. * @param pubfunct Index of the function to validate + * @param relocate Decide whether to relocate this public function or not * @return NULL if the public function is invalid, its * offset into the script's segment otherwise */ - uint16 validateExportFunc(int pubfunct); + uint16 validateExportFunc(int pubfunct, bool relocate); /** * Marks the script as deleted. @@ -254,6 +255,11 @@ public: */ int relocateOffsetSci3(uint32 offset); + /** + * Gets an offset to the beginning of the code block in a SCI3 script + */ + int getCodeBlockOffset() { return READ_SCI11ENDIAN_UINT32(_buf); } + private: /** * Processes a relocation block within a SCI0-SCI2.1 script |