aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-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.