diff options
author | Martin Kiewitz | 2013-12-04 20:42:16 +0100 |
---|---|---|
committer | Martin Kiewitz | 2013-12-04 20:42:16 +0100 |
commit | 8bdffcb2fb7aefc96aa10fde1bebd372233cac9d (patch) | |
tree | 9770e8c6a81342c05150ff19f42da318103d02ca /engines/sci/engine/script.h | |
parent | 37f72f56b2a9f3eee9b58001d212123d5295f5ec (diff) | |
download | scummvm-rg350-8bdffcb2fb7aefc96aa10fde1bebd372233cac9d.tar.gz scummvm-rg350-8bdffcb2fb7aefc96aa10fde1bebd372233cac9d.tar.bz2 scummvm-rg350-8bdffcb2fb7aefc96aa10fde1bebd372233cac9d.zip |
SCI: script patcher is now a separate class
Diffstat (limited to 'engines/sci/engine/script.h')
-rw-r--r-- | engines/sci/engine/script.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/engines/sci/engine/script.h b/engines/sci/engine/script.h index 6a27dc7f64..9e016156b8 100644 --- a/engines/sci/engine/script.h +++ b/engines/sci/engine/script.h @@ -25,6 +25,7 @@ #include "common/str.h" #include "sci/engine/segment.h" +#include "sci/engine/script_patches.h" namespace Sci { @@ -96,13 +97,7 @@ public: ~Script(); void freeScript(); - void load(int script_nr, ResourceManager *resMan); - - void patcherProcessScript(uint16 scriptNr, byte *scriptData, const uint32 scriptSize); - void patcherInitSignature(SciScriptPatcherEntry *patchTable, bool isMacSci11); - void patcherEnablePatch(SciScriptPatcherEntry *patchTable, const char *searchDescription); - int32 patcherFindSignature(const SciScriptPatcherEntry *patchEntry, const byte *scriptData, const uint32 scriptSize, bool isMacSci11); - void patcherApplyPatch(const SciScriptPatcherEntry *patchEntry, byte *scriptData, const uint32 scriptSize, int32 signatureOffset, bool isMacSci11); + void load(int script_nr, ResourceManager *resMan, ScriptPatcher *scriptPatcher); virtual bool isValidOffset(uint16 offset) const; virtual SegmentRef dereference(reg_t pointer); |