diff options
author | Johannes Schickel | 2006-07-27 20:30:51 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-07-27 20:30:51 +0000 |
commit | ee5621137fa3a0f668738159450b03fea68a93e3 (patch) | |
tree | 9a207b1d2a844f838b3ff22443c64c0860f9db61 /engines/kyra/script.h | |
parent | 8a0ec2a3e5f042e38964f20a82429f2e74936eca (diff) | |
download | scummvm-rg350-ee5621137fa3a0f668738159450b03fea68a93e3.tar.gz scummvm-rg350-ee5621137fa3a0f668738159450b03fea68a93e3.tar.bz2 scummvm-rg350-ee5621137fa3a0f668738159450b03fea68a93e3.zip |
- renaming all opcodes from cmd_* to c1_*
- changing ScriptHelper functions so it will be useable for kyra2 and kyra3 too
- unbreaking savegames (increasing the VERSION number since the game flags table got resized to be useable for kyra3)
svn-id: r23612
Diffstat (limited to 'engines/kyra/script.h')
-rw-r--r-- | engines/kyra/script.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/kyra/script.h b/engines/kyra/script.h index 72bcb0f4ed..51c533537d 100644 --- a/engines/kyra/script.h +++ b/engines/kyra/script.h @@ -31,9 +31,9 @@ struct ScriptData { byte *data; byte *ordr; uint16 dataSize; - KyraEngine::OpcodeProc *opcodes; - int opcodeSize; uint16 mustBeFreed; + + int opcodeTable; // indicates which opcode table to use (for Kyra3) }; struct ScriptState { @@ -51,7 +51,7 @@ public: ScriptHelper(KyraEngine *vm); virtual ~ScriptHelper(); - bool loadScript(const char *filename, ScriptData *data, KyraEngine::OpcodeProc *opcodes, int opcodeSize, byte *specialPtr = 0); + bool loadScript(const char *filename, ScriptData *data, byte *specialPtr = 0); void unloadScript(ScriptData *data); void initScript(ScriptState *scriptState, ScriptData *data); |