Skip to content

Commit

Permalink
GROOVIE: Add a stub for opcode 42 in V2 games
Browse files Browse the repository at this point in the history
This was o_cellmove in T7G (the Microscope puzzle)
  • Loading branch information
bluegr committed Nov 3, 2014
1 parent a827405 commit 5dc0310
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion engines/groovie/script.cpp
Expand Up @@ -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);
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions engines/groovie/script.h
Expand Up @@ -238,6 +238,7 @@ class Script {
void o2_setvideoskip();
void o2_copyscreentobg();
void o2_copybgtoscreen();
void o2_stub42();
void o2_stub52();
void o2_setscriptend();
};
Expand Down

0 comments on commit 5dc0310

Please sign in to comment.