aboutsummaryrefslogtreecommitdiff
path: root/common/savefile.h
diff options
context:
space:
mode:
authorsluicebox2019-12-09 22:50:28 -0800
committersluicebox2019-12-09 22:57:46 -0800
commitbaea8d5c9c35aed1ebfde4891c9130dc550a58ad (patch)
treec94b634d8bdc8af592e2faa3a0b79d878a70538a /common/savefile.h
parent099ef8db300fc776539694c766dcb58a4a948952 (diff)
downloadscummvm-rg350-baea8d5c9c35aed1ebfde4891c9130dc550a58ad.tar.gz
scummvm-rg350-baea8d5c9c35aed1ebfde4891c9130dc550a58ad.tar.bz2
scummvm-rg350-baea8d5c9c35aed1ebfde4891c9130dc550a58ad.zip
COMMON: Make save compression optional when copying
Allows for copying or renaming uncompressed save files, such as in Phantasmagoria 1, without compressing them in the process.
Diffstat (limited to 'common/savefile.h')
-rw-r--r--common/savefile.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/common/savefile.h b/common/savefile.h
index 80cd03e068..bc76de5659 100644
--- a/common/savefile.h
+++ b/common/savefile.h
@@ -171,18 +171,22 @@ public:
*
* @param oldName Old name.
* @param newName New name.
+ * @param compress Toggles whether to compress the resulting save file
+ * (default) or not.
* @return true if no error occurred. false otherwise.
*/
- virtual bool renameSavefile(const String &oldName, const String &newName);
+ virtual bool renameSavefile(const String &oldName, const String &newName, bool compress = true);
/**
* Copy the given savefile.
*
* @param oldName Old name.
* @param newName New name.
+ * @param compress Toggles whether to compress the resulting save file
+ * (default) or not.
* @return true if no error occurred. false otherwise.
*/
- virtual bool copySavefile(const String &oldName, const String &newName);
+ virtual bool copySavefile(const String &oldName, const String &newName, bool compress = true);
/**
* List available savegames matching a given pattern.