aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/engine/kfile.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index 9d74ed174d..7bc3c2d212 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