diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp index 9d74ed174dc..7bc3c2d2125 100644 --- a/engines/sci/engine/kfile.cpp +++ b/engines/sci/engine/kfile.cpp @@ -427,6 +427,13 @@ reg_t kFileIOOpen(EngineState *s, int argc, reg_t *argv) { return make_reg(0, handle); } } + } else if (g_sci->getGameId() == GID_PQSWAT) { + // PQSWAT tries to create subdirectories for each game profile + for (Common::String::iterator it = name.begin(); it != name.end(); ++it) { + if (*it == '\\') { + *it = '_'; + } + } } // See kMakeSaveCatName