From 9bc25749d6433b3c7c843406d04ad49b1bd1fd77 Mon Sep 17 00:00:00 2001 From: Jussi Pitkanen Date: Thu, 16 Jun 2011 18:58:14 +0300 Subject: AGI: Implement V1 SAID test commands Yes, V1 has three versions of SAID, for one, two and three arguments. Also add a few corrections to V1 instruction tables. --- engines/agi/op_cmd.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'engines/agi/op_cmd.cpp') diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp index a000453f25..f488bda922 100644 --- a/engines/agi/op_cmd.cpp +++ b/engines/agi/op_cmd.cpp @@ -1574,6 +1574,16 @@ void cmd_shake_screen(AgiGame *state, uint8 *p) { state->inputEnabled = originalValue; } +void cmd_set_speed(AgiGame *state, uint8 *p) { + // V1 command + (void)state; + (void)p; +} + +void cmd_unknown(AgiGame *state, uint8 *p) { + warning("Skipping unknown opcode %2X", *(p - 1)); +} + /** * Execute a logic script * @param n Number of the logic resource to execute @@ -1659,7 +1669,6 @@ int AgiEngine::runLogic(int n) { debugC(2, kDebugLevelScripts, "%s%s(%d %d %d)", st, logicNamesCmd[op].name, p[0], p[1], p[2]); -// (this->*_agiCommands[op])(&_game, p); _agiCommands[op](&_game, p); ip += num; } -- cgit v1.2.3