[Scummvm-cvs-logs] SF.net SVN: scummvm:[55675] scummvm/trunk/engines/gob
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Mon Jan 31 11:49:03 CET 2011
Revision: 55675
http://scummvm.svn.sourceforge.net/scummvm/?rev=55675&view=rev
Author: drmccoy
Date: 2011-01-31 10:49:03 +0000 (Mon, 31 Jan 2011)
Log Message:
-----------
GOB: o7_draw0xC4 is o7_closedBase; o7_draw0xC6 is o7_getDBString
Stubbing those for now
Modified Paths:
--------------
scummvm/trunk/engines/gob/inter.h
scummvm/trunk/engines/gob/inter_v7.cpp
Modified: scummvm/trunk/engines/gob/inter.h
===================================================================
--- scummvm/trunk/engines/gob/inter.h 2011-01-31 10:46:52 UTC (rev 55674)
+++ scummvm/trunk/engines/gob/inter.h 2011-01-31 10:49:03 UTC (rev 55675)
@@ -618,8 +618,8 @@
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 ¶ms);
Modified: scummvm/trunk/engines/gob/inter_v7.cpp
===================================================================
--- scummvm/trunk/engines/gob/inter_v7.cpp 2011-01-31 10:46:52 UTC (rev 55674)
+++ scummvm/trunk/engines/gob/inter_v7.cpp 2011-01-31 10:49:03 UTC (rev 55675)
@@ -68,8 +68,8 @@
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_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();
- warning("Addy Stub: Open dBase file \"%s.dbf\" (%s)", str0.c_str(), str1.c_str());
+ dbFile += ".DBF";
+
+ 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();
- int16 index0 = _vm->_game->_script->readVarIndex();
+ uint16 varIndex = _vm->_game->_script->readVarIndex();
- warning("Addy Stub Draw 0xC6: \"%s\", \"%s\", \"%s\", \"%s\", %d",
- str0.c_str(), str1.c_str(), str2.c_str(), str3.c_str(), index0);
+ warning("Addy Stub: Get DB string: \"%s\", \"%s\", \"%s\", \"%s\", %d",
+ id.c_str(), group.c_str(), section.c_str(), keyword.c_str(), varIndex);
+
+ WRITE_VAR(27, 0); // Failure
}
void Inter_v7::o7_oemToANSI(OpGobParams ¶ms) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list