aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2011-01-31 10:49:03 +0000
committerSven Hesse2011-01-31 10:49:03 +0000
commit0f0dbe7b7871079c1bd6cc5e2c85fe4ca1629942 (patch)
treea74344cab568b8f9bf43e0c6a4365a773a3dfaee /engines/gob
parent90d58cf487c8d2f63a6aeff952b02b410e320b19 (diff)
downloadscummvm-rg350-0f0dbe7b7871079c1bd6cc5e2c85fe4ca1629942.tar.gz
scummvm-rg350-0f0dbe7b7871079c1bd6cc5e2c85fe4ca1629942.tar.bz2
scummvm-rg350-0f0dbe7b7871079c1bd6cc5e2c85fe4ca1629942.zip
GOB: o7_draw0xC4 is o7_closedBase; o7_draw0xC6 is o7_getDBString
Stubbing those for now svn-id: r55675
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/inter.h4
-rw-r--r--engines/gob/inter_v7.cpp40
2 files changed, 26 insertions, 18 deletions
diff --git a/engines/gob/inter.h b/engines/gob/inter.h
index a277e33b26..87a548d9e8 100644
--- a/engines/gob/inter.h
+++ b/engines/gob/inter.h
@@ -618,8 +618,8 @@ protected:
void o7_setINIValue();
void o7_draw0xA4();
void o7_opendBase();
- void o7_draw0xC5();
- void o7_draw0xC6();
+ void o7_closedBase();
+ void o7_getDBString();
void o7_oemToANSI(OpGobParams &params);
diff --git a/engines/gob/inter_v7.cpp b/engines/gob/inter_v7.cpp
index b4ef4caa75..bfa647ab5a 100644
--- a/engines/gob/inter_v7.cpp
+++ b/engines/gob/inter_v7.cpp
@@ -68,8 +68,8 @@ void Inter_v7::setupOpcodesDraw() {
OPCODEDRAW(0xA2, o7_setINIValue);
OPCODEDRAW(0xA4, o7_draw0xA4);
OPCODEDRAW(0xC4, o7_opendBase);
- OPCODEDRAW(0xC5, o7_draw0xC5);
- OPCODEDRAW(0xC6, o7_draw0xC6);
+ OPCODEDRAW(0xC5, o7_closedBase);
+ OPCODEDRAW(0xC6, o7_getDBString);
}
void Inter_v7::setupOpcodesFunc() {
@@ -408,28 +408,36 @@ void Inter_v7::o7_draw0xA4() {
}
void Inter_v7::o7_opendBase() {
- Common::String str0 = _vm->_game->_script->evalString();
- Common::String str1 = _vm->_game->_script->evalString();
+ Common::String dbFile = _vm->_game->_script->evalString();
+ Common::String id = _vm->_game->_script->evalString();
+
+ dbFile += ".DBF";
- warning("Addy Stub: Open dBase file \"%s.dbf\" (%s)", str0.c_str(), str1.c_str());
+ warning("Addy Stub: Open dBase \"%s\" (\"%s\")", id.c_str(), dbFile.c_str());
+
+ WRITE_VAR(27, 0); // Failure
}
-void Inter_v7::o7_draw0xC5() {
- Common::String str0 = _vm->_game->_script->evalString();
+void Inter_v7::o7_closedBase() {
+ Common::String id = _vm->_game->_script->evalString();
- warning("Addy Stub Draw 0xC5: \"%s\"", str0.c_str());
+ warning("Addy Stub: Close dBase \"%s\"", id.c_str());
+
+ WRITE_VAR(27, 0); // Failure
}
-void Inter_v7::o7_draw0xC6() {
- Common::String str0 = _vm->_game->_script->evalString();
- Common::String str1 = _vm->_game->_script->evalString();
- Common::String str2 = _vm->_game->_script->evalString();
- Common::String str3 = _vm->_game->_script->evalString();
+void Inter_v7::o7_getDBString() {
+ Common::String id = _vm->_game->_script->evalString();
+ Common::String group = _vm->_game->_script->evalString();
+ Common::String section = _vm->_game->_script->evalString();
+ Common::String keyword = _vm->_game->_script->evalString();
+
+ uint16 varIndex = _vm->_game->_script->readVarIndex();
- int16 index0 = _vm->_game->_script->readVarIndex();
+ warning("Addy Stub: Get DB string: \"%s\", \"%s\", \"%s\", \"%s\", %d",
+ id.c_str(), group.c_str(), section.c_str(), keyword.c_str(), varIndex);
- warning("Addy Stub Draw 0xC6: \"%s\", \"%s\", \"%s\", \"%s\", %d",
- str0.c_str(), str1.c_str(), str2.c_str(), str3.c_str(), index0);
+ WRITE_VAR(27, 0); // Failure
}
void Inter_v7::o7_oemToANSI(OpGobParams &params) {