diff options
author | Sven Hesse | 2011-01-25 02:50:56 +0000 |
---|---|---|
committer | Sven Hesse | 2011-01-25 02:50:56 +0000 |
commit | c8997d0ef8714cd7a12b22626d102b0ceefcd5e4 (patch) | |
tree | 8e00367ea76c2568f360c6d69fd0697ad735e9cf | |
parent | 0b5af778b00e0908cad98843f9a58498b8a1f90c (diff) | |
download | scummvm-rg350-c8997d0ef8714cd7a12b22626d102b0ceefcd5e4.tar.gz scummvm-rg350-c8997d0ef8714cd7a12b22626d102b0ceefcd5e4.tar.bz2 scummvm-rg350-c8997d0ef8714cd7a12b22626d102b0ceefcd5e4.zip |
GOB: o7_draw0x44 is o7_displayWarning
svn-id: r55515
-rw-r--r-- | engines/gob/inter.h | 2 | ||||
-rw-r--r-- | engines/gob/inter_v7.cpp | 17 |
2 files changed, 9 insertions, 10 deletions
diff --git a/engines/gob/inter.h b/engines/gob/inter.h index 8189b456bf..c603c5d1d7 100644 --- a/engines/gob/inter.h +++ b/engines/gob/inter.h @@ -595,7 +595,7 @@ protected: void o7_draw0x0C(); void o7_draw0x0D(); - void o7_draw0x44(); + void o7_displayWarning(); void o7_draw0x45(); void o7_draw0x57(); void o7_draw0x89(); diff --git a/engines/gob/inter_v7.cpp b/engines/gob/inter_v7.cpp index 74b597cca7..8dad1416ff 100644 --- a/engines/gob/inter_v7.cpp +++ b/engines/gob/inter_v7.cpp @@ -46,7 +46,7 @@ void Inter_v7::setupOpcodesDraw() { OPCODEDRAW(0x0C, o7_draw0x0C); OPCODEDRAW(0x0D, o7_draw0x0D); - OPCODEDRAW(0x44, o7_draw0x44); + OPCODEDRAW(0x44, o7_displayWarning); OPCODEDRAW(0x45, o7_draw0x45); OPCODEDRAW(0x57, o7_draw0x57); OPCODEDRAW(0x89, o7_draw0x89); @@ -83,20 +83,19 @@ void Inter_v7::o7_draw0x0D() { warning("Addy Stub Draw 0x0D: \"%s\", %d", str0.c_str(), expr0); } -void Inter_v7::o7_draw0x44() { +void Inter_v7::o7_displayWarning() { _vm->_game->_script->evalExpr(0); - Common::String str0 = _vm->_game->_script->getResultStr(); + Common::String caption = _vm->_game->_script->getResultStr(); _vm->_game->_script->evalExpr(0); - Common::String str1 = _vm->_game->_script->getResultStr(); + Common::String text = _vm->_game->_script->getResultStr(); _vm->_game->_script->evalExpr(0); - Common::String str2 = _vm->_game->_script->getResultStr(); + Common::String source = _vm->_game->_script->getResultStr(); _vm->_game->_script->evalExpr(0); - Common::String str3 = _vm->_game->_script->getResultStr(); + Common::String msg = _vm->_game->_script->getResultStr(); _vm->_game->_script->evalExpr(0); - Common::String str4 = _vm->_game->_script->getResultStr(); + Common::String param = _vm->_game->_script->getResultStr(); - warning("Addy Stub Draw 0x44: \"%s\", \"%s\", \"%s\", \"%s\", \"%s\"", - str0.c_str(), str1.c_str(), str2.c_str(), str3.c_str(), str4.c_str()); + warning("%s: %s (%s)", source.c_str(), msg.c_str(), param.c_str()); } void Inter_v7::o7_draw0x45() { |