aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorFilippos Karapetis2012-07-01 11:08:08 -0700
committerFilippos Karapetis2012-07-01 11:08:08 -0700
commit2c161796c5688a1f76dcf66f1e66eb9bcd1e0f23 (patch)
tree3bac116e107f2948388444cf26f8cf8a88bc3521 /common
parentd335b78003f3d28d1c9c9aeddf6a46ad1c5f4888 (diff)
parent659d0cfcc39721001f607e4ca51b8eb477708404 (diff)
downloadscummvm-rg350-2c161796c5688a1f76dcf66f1e66eb9bcd1e0f23.tar.gz
scummvm-rg350-2c161796c5688a1f76dcf66f1e66eb9bcd1e0f23.tar.bz2
scummvm-rg350-2c161796c5688a1f76dcf66f1e66eb9bcd1e0f23.zip
Merge pull request #239 from bluegr/skipsavecompression
COMMON: Allow the savefile manager to create uncompressed saves
Diffstat (limited to 'common')
-rw-r--r--common/savefile.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/common/savefile.h b/common/savefile.h
index 03a7b52add..da787289ee 100644
--- a/common/savefile.h
+++ b/common/savefile.h
@@ -104,11 +104,23 @@ public:
virtual String popErrorDesc();
/**
- * Open the savefile with the specified name in the given directory for saving.
- * @param name the name of the savefile
+ * Open the savefile with the specified name in the given directory for
+ * saving.
+ *
+ * Saved games are compressed by default, and engines are expected to
+ * always write compressed saves.
+ *
+ * A notable exception is if uncompressed files are needed for
+ * compatibility with games not supported by ScummVM, such as character
+ * exports from the Quest for Glory series. QfG5 is a 3D game and won't be
+ * supported by ScummVM.
+ *
+ * @param name the name of the savefile
+ * @param compress toggles whether to compress the resulting save file
+ * (default) or not.
* @return pointer to an OutSaveFile, or NULL if an error occurred.
*/
- virtual OutSaveFile *openForSaving(const String &name) = 0;
+ virtual OutSaveFile *openForSaving(const String &name, bool compress = true) = 0;
/**
* Open the file with the specified name in the given directory for loading.