From 5dc03107fd86abb725eff6d9ea704267534d9dfe Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 3 Nov 2014 11:36:25 +0200 Subject: GROOVIE: Add a stub for opcode 42 in V2 games This was o_cellmove in T7G (the Microscope puzzle) --- engines/groovie/script.cpp | 8 +++++++- engines/groovie/script.h | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/groovie/script.cpp b/engines/groovie/script.cpp index 479ede5ff4..c4091f6da7 100644 --- a/engines/groovie/script.cpp +++ b/engines/groovie/script.cpp @@ -1701,6 +1701,12 @@ void Script::o2_setvideoskip() { debugC(1, kDebugScript, "SetVideoSkip (0x%04X)", _videoSkipAddress); } +void Script::o2_stub42() { + uint8 arg = readScript8bits(); + // TODO: Switch with 5 cases (0 - 5). Anything above 5 is a NOP + debugC(1, kDebugScript, "STUB42 (0x%02X)", arg); +} + void Script::o2_stub52() { uint8 arg = readScript8bits(); debugC(1, kDebugScript, "STUB52 (0x%02X)", arg); @@ -1874,7 +1880,7 @@ Script::OpcodeFunc Script::_opcodesV2[NUM_OPCODES] = { &Script::o_loadscript, &Script::o_setvideoorigin, // 0x40 &Script::o_sub, - &Script::o_cellmove, + &Script::o2_stub42, &Script::o_returnscript, &Script::o_sethotspotright, // 0x44 &Script::o_sethotspotleft, diff --git a/engines/groovie/script.h b/engines/groovie/script.h index 35e52593de..a9f6143509 100644 --- a/engines/groovie/script.h +++ b/engines/groovie/script.h @@ -238,6 +238,7 @@ private: void o2_setvideoskip(); void o2_copyscreentobg(); void o2_copybgtoscreen(); + void o2_stub42(); void o2_stub52(); void o2_setscriptend(); }; -- cgit v1.2.3