From ee5621137fa3a0f668738159450b03fea68a93e3 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 27 Jul 2006 20:30:51 +0000 Subject: - 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 --- engines/kyra/script.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/kyra/script.h') 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); -- cgit v1.2.3