aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2017-01-09 14:07:02 -0600
committerColin Snover2017-01-09 19:34:54 -0600
commitb895b4b075ee8b9ca327c027b620db3ea8059e8d (patch)
tree999b038022968b5cdf79381b80d28f3e4f52682d
parent126378fa263734c44072bc4ad14835cba23bb124 (diff)
downloadscummvm-rg350-b895b4b075ee8b9ca327c027b620db3ea8059e8d.tar.gz
scummvm-rg350-b895b4b075ee8b9ca327c027b620db3ea8059e8d.tar.bz2
scummvm-rg350-b895b4b075ee8b9ca327c027b620db3ea8059e8d.zip
SCI32: Disable compression for Phantasmagoria save files
-rw-r--r--engines/sci/engine/file.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/sci/engine/file.cpp b/engines/sci/engine/file.cpp
index da1d00f3bf..75aa4fa2ca 100644
--- a/engines/sci/engine/file.cpp
+++ b/engines/sci/engine/file.cpp
@@ -200,6 +200,15 @@ reg_t file_open(EngineState *s, const Common::String &filename, kFileOpenMode mo
if (s->currentRoomNumber() == 52)
isCompressed = false;
break;
+#ifdef ENABLE_SCI32
+ // Phantasmagoria game scripts create their own save files, so they are
+ // interoperable with the original interpreter just by renaming them as long
+ // as they are not compressed. They are also never larger than a couple
+ // hundred bytes, so compression does not do much here anyway
+ case GID_PHANTASMAGORIA:
+ isCompressed = false;
+ break;
+#endif
default:
break;
}