From 294f416c4df3f048e2b07f3a9c32ea2a38a13d25 Mon Sep 17 00:00:00 2001 From: Arnaud BoutonnĂ© Date: Mon, 10 Aug 2009 20:57:26 +0000 Subject: gob - Add a workaround for files (at least in Playtoons) that are tested on CD only, with the '@' symbol svn-id: r43227 --- engines/gob/inter_v2.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 ¶ms) { 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"); -- cgit v1.2.3