aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/inter_v2.cpp
diff options
context:
space:
mode:
authorArnaud Boutonné2009-08-10 20:57:26 +0000
committerArnaud Boutonné2009-08-10 20:57:26 +0000
commit294f416c4df3f048e2b07f3a9c32ea2a38a13d25 (patch)
treef12aeaaa1f4bd84b2efd635594ba89f3b8c9dfc7 /engines/gob/inter_v2.cpp
parent8999f8dbffb253fdd88718633810c3213157531a (diff)
downloadscummvm-rg350-294f416c4df3f048e2b07f3a9c32ea2a38a13d25.tar.gz
scummvm-rg350-294f416c4df3f048e2b07f3a9c32ea2a38a13d25.tar.bz2
scummvm-rg350-294f416c4df3f048e2b07f3a9c32ea2a38a13d25.zip
gob - Add a workaround for files (at least in Playtoons) that are tested on CD only, with the '@' symbol
svn-id: r43227
Diffstat (limited to 'engines/gob/inter_v2.cpp')
-rw-r--r--engines/gob/inter_v2.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/gob/inter_v2.cpp b/engines/gob/inter_v2.cpp
index 143a9f2b18..b4e5bf7623 100644
--- a/engines/gob/inter_v2.cpp
+++ b/engines/gob/inter_v2.cpp
@@ -1305,8 +1305,14 @@ bool Inter_v2::o2_checkData(OpFuncParams &params) {
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");