[Scummvm-cvs-logs] SF.net SVN: scummvm:[43227] scummvm/trunk/engines/gob/inter_v2.cpp
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Mon Aug 10 22:57:27 CEST 2009
Revision: 43227
http://scummvm.svn.sourceforge.net/scummvm/?rev=43227&view=rev
Author: strangerke
Date: 2009-08-10 20:57:26 +0000 (Mon, 10 Aug 2009)
Log Message:
-----------
gob - Add a workaround for files (at least in Playtoons) that are tested on CD only, with the '@' symbol
Modified Paths:
--------------
scummvm/trunk/engines/gob/inter_v2.cpp
Modified: scummvm/trunk/engines/gob/inter_v2.cpp
===================================================================
--- scummvm/trunk/engines/gob/inter_v2.cpp 2009-08-10 19:50:32 UTC (rev 43226)
+++ scummvm/trunk/engines/gob/inter_v2.cpp 2009-08-10 20:57:26 UTC (rev 43227)
@@ -1305,8 +1305,14 @@
char *file = _vm->_game->_script->getResultStr();
+ // WORKAROUND: In some games (at least all the Playtoons), some files are
+ // read on CD (and only on CD). "@:\" is replaced by the CD drive letter.
+ // As the files are copied on the HDD, those characters are skipped.
+ if (strncmp(file, "@:\\", 3) ==0 )
+ file += 3;
+
// WORKAROUND: For some reason, the variable indicating which TOT to load next
- // is overwritten in the guard house card game in Woodruff
+ // is overwritten in the guard house card game in Woodruff.
if ((_vm->getGameType() == kGameTypeWoodruff) && !scumm_stricmp(file, "6.TOT"))
strcpy(file, "EMAP2011.TOT");
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