diff options
author | David Corrales | 2007-07-29 01:36:59 +0000 |
---|---|---|
committer | David Corrales | 2007-07-29 01:36:59 +0000 |
commit | 9752c75f407c8bd82006222433fcc3618b9e82bb (patch) | |
tree | c33cd0535db9cf4c9c358e222b640c5e8b7cd421 /common | |
parent | f42108e63399f4329bb1cadfd2e21d808aea8a89 (diff) | |
download | scummvm-rg350-9752c75f407c8bd82006222433fcc3618b9e82bb.tar.gz scummvm-rg350-9752c75f407c8bd82006222433fcc3618b9e82bb.tar.bz2 scummvm-rg350-9752c75f407c8bd82006222433fcc3618b9e82bb.zip |
Add a removeSavefile() to the default savefile manager based on the new Common::File::remove().
svn-id: r28282
Diffstat (limited to 'common')
-rw-r--r-- | common/savefile.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/savefile.h b/common/savefile.h index 7c97ea5058..3e1b9ffaaa 100644 --- a/common/savefile.h +++ b/common/savefile.h @@ -137,6 +137,13 @@ public: virtual InSaveFile *openForLoading(const char *filename) = 0; /** + * Removes the given savefile from the filesystem. + * @param filename Filename path pointing to the savefile. + * @return true if no error ocurred. false otherwise. + */ + virtual bool removeSavefile(const char *filename) = 0; + + /** * Request a list of available savegames with a given regex. * @param regex Regular expression to match. Wildcards like * or ? are available. * returns a list of strings for all present file names. |