[Scummvm-cvs-logs] SF.net SVN: scummvm:[43951] scummvm/trunk/engines/gob/inter_playtoons.cpp
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Fri Sep 4 23:43:06 CEST 2009
Revision: 43951
http://scummvm.svn.sourceforge.net/scummvm/?rev=43951&view=rev
Author: strangerke
Date: 2009-09-04 21:43:06 +0000 (Fri, 04 Sep 2009)
Log Message:
-----------
Playtoons - Add workaround in order to ignore hardcoded paths in oPlaytoons_checkData. Useful for playtoons sticks found on deutsch Addy4
Modified Paths:
--------------
scummvm/trunk/engines/gob/inter_playtoons.cpp
Modified: scummvm/trunk/engines/gob/inter_playtoons.cpp
===================================================================
--- scummvm/trunk/engines/gob/inter_playtoons.cpp 2009-09-04 21:38:28 UTC (rev 43950)
+++ scummvm/trunk/engines/gob/inter_playtoons.cpp 2009-09-04 21:43:06 UTC (rev 43951)
@@ -112,8 +112,8 @@
warning("oPlaytoons_F_1B not fully handled");
warning("shortId %d, var2 %d var3 %d var4 %d", shortId, var2, var3, var4);
}
-// else
-// warning("id not found %d", id);;
+ else
+ warning("shortId not found %d", shortId);
return false;
}
@@ -131,6 +131,7 @@
int16 handle;
uint16 varOff;
int32 size;
+ char *backSlash;
SaveLoad::SaveMode mode;
_vm->_game->_script->evalExpr(0);
@@ -149,6 +150,12 @@
file += 3;
}
+ // WORKAROUND: In the Playtoons stick files found in german Addy 4, some paths are hardcoded
+ if ((backSlash = strrchr(file, '\\'))) {
+ debugC(2, kDebugFileIO, "oPlaytoons_checkData: \"%s\" instead of \"%s\"", backSlash + 1, file);
+ file = backSlash + 1;
+ }
+
mode = _vm->_saveLoad->getSaveMode(file);
if (mode == SaveLoad::kSaveModeNone) {
if (_vm->_dataIO->existData(file))
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