aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/gob/inter.h1
-rw-r--r--engines/gob/inter_v7.cpp12
2 files changed, 13 insertions, 0 deletions
diff --git a/engines/gob/inter.h b/engines/gob/inter.h
index cafa1e1218..726502982e 100644
--- a/engines/gob/inter.h
+++ b/engines/gob/inter.h
@@ -599,6 +599,7 @@ protected:
void o7_displayWarning();
void o7_draw0x45();
void o7_intToString();
+ void o7_draw0x59();
void o7_draw0x89();
void o7_findFile();
void o7_getSystemProperty();
diff --git a/engines/gob/inter_v7.cpp b/engines/gob/inter_v7.cpp
index 9996f0ff59..03f97655ba 100644
--- a/engines/gob/inter_v7.cpp
+++ b/engines/gob/inter_v7.cpp
@@ -53,6 +53,7 @@ void Inter_v7::setupOpcodesDraw() {
OPCODEDRAW(0x44, o7_displayWarning);
OPCODEDRAW(0x45, o7_draw0x45);
OPCODEDRAW(0x57, o7_intToString);
+ OPCODEDRAW(0x59, o7_draw0x59);
OPCODEDRAW(0x89, o7_draw0x89);
OPCODEDRAW(0x8A, o7_findFile);
OPCODEDRAW(0x8C, o7_getSystemProperty);
@@ -137,6 +138,17 @@ void Inter_v7::o7_intToString() {
sprintf(GET_VARO_STR(destIndex), "%d", READ_VARO_UINT32(valueIndex));
}
+void Inter_v7::o7_draw0x59() {
+ _vm->_game->_script->evalExpr(0);
+ Common::String str0 = _vm->_game->_script->getResultStr();
+ _vm->_game->_script->evalExpr(0);
+ Common::String str1 = _vm->_game->_script->getResultStr();
+
+ int16 expr0 = _vm->_game->_script->readValExpr();
+
+ warning("Addy Stub Draw 0x59: \"%s\", \"%s\", %d", str0.c_str(), str1.c_str(), expr0);
+}
+
void Inter_v7::o7_draw0x89() {
_vm->_game->_script->evalExpr(0);
Common::String str0 = _vm->_game->_script->getResultStr();