[Scummvm-cvs-logs] SF.net SVN: scummvm:[43841] scummvm/trunk/engines/gob
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Mon Aug 31 01:39:25 CEST 2009
Revision: 43841
http://scummvm.svn.sourceforge.net/scummvm/?rev=43841&view=rev
Author: strangerke
Date: 2009-08-30 23:39:25 +0000 (Sun, 30 Aug 2009)
Log Message:
-----------
Modify warning message for o5_deleteFile as it's not only used by Dynasty, and Add oPlaytoons_copyFile. The latest will need to be completed if a call requires it. For the moment, it only fixes the crash at the end of the 3rd video of the construction kit.
Modified Paths:
--------------
scummvm/trunk/engines/gob/inter.h
scummvm/trunk/engines/gob/inter_playtoons.cpp
scummvm/trunk/engines/gob/inter_v5.cpp
Modified: scummvm/trunk/engines/gob/inter.h
===================================================================
--- scummvm/trunk/engines/gob/inter.h 2009-08-30 21:43:07 UTC (rev 43840)
+++ scummvm/trunk/engines/gob/inter.h 2009-08-30 23:39:25 UTC (rev 43841)
@@ -563,6 +563,7 @@
bool oPlaytoons_readData(OpFuncParams ¶ms);
void oPlaytoons_CD_20_23();
void oPlaytoons_CD_25();
+ void oPlaytoons_copyFile();
void oPlaytoons_openItk();
};
Modified: scummvm/trunk/engines/gob/inter_playtoons.cpp
===================================================================
--- scummvm/trunk/engines/gob/inter_playtoons.cpp 2009-08-30 21:43:07 UTC (rev 43840)
+++ scummvm/trunk/engines/gob/inter_playtoons.cpp 2009-08-30 23:39:25 UTC (rev 43841)
@@ -74,6 +74,7 @@
OPCODEDRAW(0x20, oPlaytoons_CD_20_23);
OPCODEDRAW(0x23, oPlaytoons_CD_20_23);
OPCODEDRAW(0x25, oPlaytoons_CD_25);
+ OPCODEDRAW(0x60, oPlaytoons_copyFile);
OPCODEDRAW(0x85, oPlaytoons_openItk);
}
@@ -269,6 +270,18 @@
_vm->_game->_script->readVarIndex();
}
+void Inter_Playtoons::oPlaytoons_copyFile() {
+ char fileName1[128];
+ char fileName2[128];
+
+ _vm->_game->_script->evalExpr(0);
+ strncpy0(fileName1, _vm->_game->_script->getResultStr(), 127);
+ _vm->_game->_script->evalExpr(0);
+ strncpy0(fileName2, _vm->_game->_script->getResultStr(), 127);
+
+ warning("Playtoons Stub: copy file from \"%s\" to \"%s\"", fileName1, fileName2);
+}
+
void Inter_Playtoons::oPlaytoons_openItk() {
char fileName[128];
char *backSlash;
Modified: scummvm/trunk/engines/gob/inter_v5.cpp
===================================================================
--- scummvm/trunk/engines/gob/inter_v5.cpp 2009-08-30 21:43:07 UTC (rev 43840)
+++ scummvm/trunk/engines/gob/inter_v5.cpp 2009-08-30 23:39:25 UTC (rev 43841)
@@ -96,7 +96,7 @@
void Inter_v5::o5_deleteFile() {
_vm->_game->_script->evalExpr(0);
- warning("Dynasty Stub: deleteFile \"%s\"", _vm->_game->_script->getResultStr());
+ warning("deleteFile: \"%s\"", _vm->_game->_script->getResultStr());
}
void Inter_v5::o5_initScreen() {
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