[Scummvm-cvs-logs] SF.net SVN: scummvm:[55536] scummvm/trunk/engines/gob

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Tue Jan 25 16:13:38 CET 2011


Revision: 55536
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55536&view=rev
Author:   drmccoy
Date:     2011-01-25 15:13:37 +0000 (Tue, 25 Jan 2011)

Log Message:
-----------
GOB: Add o7_zeroVar and partially implement draw0x89

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-25 14:20:47 UTC (rev 55535)
+++ scummvm/trunk/engines/gob/inter.h	2011-01-25 15:13:37 UTC (rev 55536)
@@ -604,6 +604,7 @@
 	void o7_getSystemProperty();
 	void o7_loadLBM();
 	void o7_draw0x93();
+	void o7_zeroVar();
 	void o7_getINIValue();
 	void o7_setINIValue();
 	void o7_draw0xA4();

Modified: scummvm/trunk/engines/gob/inter_v7.cpp
===================================================================
--- scummvm/trunk/engines/gob/inter_v7.cpp	2011-01-25 14:20:47 UTC (rev 55535)
+++ scummvm/trunk/engines/gob/inter_v7.cpp	2011-01-25 15:13:37 UTC (rev 55536)
@@ -56,6 +56,7 @@
 	OPCODEDRAW(0x8C, o7_getSystemProperty);
 	OPCODEDRAW(0x90, o7_loadLBM);
 	OPCODEDRAW(0x93, o7_draw0x93);
+	OPCODEDRAW(0x95, o7_zeroVar);
 	OPCODEDRAW(0xA1, o7_getINIValue);
 	OPCODEDRAW(0xA2, o7_setINIValue);
 	OPCODEDRAW(0xA4, o7_draw0xA4);
@@ -124,9 +125,18 @@
 	_vm->_game->_script->evalExpr(0);
 	Common::String str1 = _vm->_game->_script->getResultStr();
 
-	int16 index0 = _vm->_game->_script->readVarIndex();
+	warning("Addy Stub Draw 0x89: \"%s\", \"%s\"", str0.c_str(), str1.c_str());
 
-	warning("Addy Stub Draw 0x89: \"%s\", \"%s\", %d", str0.c_str(), str1.c_str(), index0);
+	Common::ArchiveMemberList files;
+
+	SearchMan.listMatchingMembers(files, str0);
+
+	if (files.empty()) {
+		storeValue(0);
+		return;
+	}
+
+	storeValue(1);
 }
 
 void Inter_v7::o7_findFile() {
@@ -204,6 +214,12 @@
 	warning("Addy Stub Draw 0x93: %d", expr0);
 }
 
+void Inter_v7::o7_zeroVar() {
+	uint16 index = _vm->_game->_script->readVarIndex();
+
+	WRITE_VARO_UINT32(index, 0);
+}
+
 void Inter_v7::o7_getINIValue() {
 	_vm->_game->_script->evalExpr(0);
 


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