diff options
author | Arnaud Boutonné | 2009-09-04 21:43:06 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2009-09-04 21:43:06 +0000 |
commit | 824ca7258cebf4360faebac67616535b134fa40e (patch) | |
tree | 3cca673dbad0eea6e9bbcef408c1724f0fa165bc | |
parent | d46ca7a5e30371e33b38c648291b3ee3fef32c5d (diff) | |
download | scummvm-rg350-824ca7258cebf4360faebac67616535b134fa40e.tar.gz scummvm-rg350-824ca7258cebf4360faebac67616535b134fa40e.tar.bz2 scummvm-rg350-824ca7258cebf4360faebac67616535b134fa40e.zip |
Playtoons - Add workaround in order to ignore hardcoded paths in oPlaytoons_checkData. Useful for playtoons sticks found on deutsch Addy4
svn-id: r43951
-rw-r--r-- | engines/gob/inter_playtoons.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/gob/inter_playtoons.cpp b/engines/gob/inter_playtoons.cpp index 2b4909544b..05023df10c 100644 --- a/engines/gob/inter_playtoons.cpp +++ b/engines/gob/inter_playtoons.cpp @@ -112,8 +112,8 @@ bool Inter_Playtoons::oPlaytoons_F_1B(OpFuncParams ¶ms) { 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 @@ bool Inter_Playtoons::oPlaytoons_checkData(OpFuncParams ¶ms) { int16 handle; uint16 varOff; int32 size; + char *backSlash; SaveLoad::SaveMode mode; _vm->_game->_script->evalExpr(0); @@ -149,6 +150,12 @@ bool Inter_Playtoons::oPlaytoons_checkData(OpFuncParams ¶ms) { 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)) |