From 1a44ed588f86a6be2929f0232edbccd2ce535c03 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Tue, 25 Jan 2011 01:28:31 +0000 Subject: GOB: Some more Addy stubs svn-id: r55509 --- engines/gob/inter.h | 2 ++ engines/gob/inter_playtoons.cpp | 4 ++++ engines/gob/inter_v7.cpp | 13 +++++++++++++ 3 files changed, 19 insertions(+) diff --git a/engines/gob/inter.h b/engines/gob/inter.h index 910fe64e8e..1a87333acf 100644 --- a/engines/gob/inter.h +++ b/engines/gob/inter.h @@ -593,6 +593,7 @@ protected: virtual void setupOpcodesFunc(); virtual void setupOpcodesGob(); + void o7_draw0x0C(); void o7_draw0x0D(); void o7_draw0x44(); void o7_draw0x45(); @@ -606,6 +607,7 @@ protected: void o7_draw0xA2(); void o7_draw0xA4(); void o7_draw0xC4(); + void o7_draw0xC5(); void o7_draw0xC6(); }; diff --git a/engines/gob/inter_playtoons.cpp b/engines/gob/inter_playtoons.cpp index a46b7d8693..3879b2933a 100644 --- a/engines/gob/inter_playtoons.cpp +++ b/engines/gob/inter_playtoons.cpp @@ -237,6 +237,10 @@ bool Inter_Playtoons::oPlaytoons_checkData(OpFuncParams ¶ms) { debugC(2, kDebugFileIO, "oPlaytoons_checkData: \"%s\" instead of \"%s\"", file + 3, file); file += 3; } + if (strncmp(file, "", 4) == 0) { + debugC(2, kDebugFileIO, "oPlaytoons_checkData: \"%s\" instead of \"%s\"", file + 4, file); + file += 4; + } if (strncmp(file, "", 5) == 0) { debugC(2, kDebugFileIO, "oPlaytoons_checkData: \"%s\" instead of \"%s\"", file + 5, file); file += 5; diff --git a/engines/gob/inter_v7.cpp b/engines/gob/inter_v7.cpp index 3c4e42912a..9c17e8c43d 100644 --- a/engines/gob/inter_v7.cpp +++ b/engines/gob/inter_v7.cpp @@ -43,6 +43,7 @@ Inter_v7::Inter_v7(GobEngine *vm) : Inter_Playtoons(vm) { void Inter_v7::setupOpcodesDraw() { Inter_Playtoons::setupOpcodesDraw(); + OPCODEDRAW(0x0C, o7_draw0x0C); OPCODEDRAW(0x0D, o7_draw0x0D); OPCODEDRAW(0x44, o7_draw0x44); OPCODEDRAW(0x45, o7_draw0x45); @@ -56,6 +57,7 @@ void Inter_v7::setupOpcodesDraw() { OPCODEDRAW(0xA2, o7_draw0xA2); OPCODEDRAW(0xA4, o7_draw0xA4); OPCODEDRAW(0xC4, o7_draw0xC4); + OPCODEDRAW(0xC5, o7_draw0xC5); OPCODEDRAW(0xC6, o7_draw0xC6); } @@ -67,6 +69,10 @@ void Inter_v7::setupOpcodesGob() { Inter_Playtoons::setupOpcodesGob(); } +void Inter_v7::o7_draw0x0C() { + WRITE_VAR(17, 0); +} + void Inter_v7::o7_draw0x0D() { _vm->_game->_script->evalExpr(0); Common::String str0 = _vm->_game->_script->getResultStr(); @@ -210,6 +216,13 @@ void Inter_v7::o7_draw0xC4() { warning("Addy Stub Draw 0xC4: \"%s\", \"%s\"", str0.c_str(), str1.c_str()); } +void Inter_v7::o7_draw0xC5() { + _vm->_game->_script->evalExpr(0); + Common::String str0 = _vm->_game->_script->getResultStr(); + + warning("Addy Stub Draw 0xC5: \"%s\"", str0.c_str()); +} + void Inter_v7::o7_draw0xC6() { _vm->_game->_script->evalExpr(0); Common::String str0 = _vm->_game->_script->getResultStr(); -- cgit v1.2.3