aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/inter_playtoons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/inter_playtoons.cpp')
-rw-r--r--engines/gob/inter_playtoons.cpp11
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 &params) {
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 &params) {
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 &params) {
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))