diff options
author | Colin Snover | 2017-02-22 12:38:07 -0600 |
---|---|---|
committer | Colin Snover | 2017-04-23 13:07:25 -0500 |
commit | a799cb3462a220afcd705c74291075f98520d87c (patch) | |
tree | b5ac536e8532cec31e0462f6b43fe27df0ce808c /engines/sci/engine/script.h | |
parent | fc02b34215f218d2e0a0f20990654b120f52efd0 (diff) | |
download | scummvm-rg350-a799cb3462a220afcd705c74291075f98520d87c.tar.gz scummvm-rg350-a799cb3462a220afcd705c74291075f98520d87c.tar.bz2 scummvm-rg350-a799cb3462a220afcd705c74291075f98520d87c.zip |
SCI: Fix SCI3 exports
Export functions may be relocated above 64k in SCI3, but exports
that do not have an entry in the relocation table must be handled
the same as SCI1.1-2.1.
Diffstat (limited to 'engines/sci/engine/script.h')
-rw-r--r-- | engines/sci/engine/script.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/engine/script.h b/engines/sci/engine/script.h index 2be3fd0264..f63b312647 100644 --- a/engines/sci/engine/script.h +++ b/engines/sci/engine/script.h @@ -260,9 +260,10 @@ public: int relocateOffsetSci3(uint32 offset) const; /** - * Gets an offset to the beginning of the code block in a SCI3 script + * Gets an offset to the beginning of the code block in a SCI1.1 or later + * script */ - int getCodeBlockOffsetSci3() { return _buf->getInt32SEAt(0); } + int getCodeBlockOffset() { return _codeOffset; } /** * Get the offset array |