aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/script.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/engine/script.h')
-rw-r--r--engines/sci/engine/script.h8
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