aboutsummaryrefslogtreecommitdiff
path: root/common/savefile.h
diff options
context:
space:
mode:
authorMax Horn2009-05-29 14:38:22 +0000
committerMax Horn2009-05-29 14:38:22 +0000
commitfb79b185717c9aae7c793e7f07d5d6b94aec4abf (patch)
tree6df973c3f64d5712d6df36caa0af30b6b6012561 /common/savefile.h
parent518e005ec27ef323275b364a3cd16d24d7491674 (diff)
downloadscummvm-rg350-fb79b185717c9aae7c793e7f07d5d6b94aec4abf.tar.gz
scummvm-rg350-fb79b185717c9aae7c793e7f07d5d6b94aec4abf.tar.bz2
scummvm-rg350-fb79b185717c9aae7c793e7f07d5d6b94aec4abf.zip
Changed SaveFileManager methods to take Common::String params (instead of char pointers)
svn-id: r41000
Diffstat (limited to 'common/savefile.h')
-rw-r--r--common/savefile.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/savefile.h b/common/savefile.h
index 776f1fa159..d8d2dbc9c2 100644
--- a/common/savefile.h
+++ b/common/savefile.h
@@ -110,21 +110,21 @@ public:
* @param name the name of the savefile
* @return pointer to an OutSaveFile, or NULL if an error occured.
*/
- virtual OutSaveFile *openForSaving(const char *name) = 0;
+ virtual OutSaveFile *openForSaving(const String &name) = 0;
/**
* Open the file with the specified name in the given directory for loading.
* @param name the name of the savefile
* @return pointer to an InSaveFile, or NULL if an error occured.
*/
- virtual InSaveFile *openForLoading(const char *name) = 0;
+ virtual InSaveFile *openForLoading(const String &name) = 0;
/**
* Removes the given savefile from the system.
* @param name the name of the savefile to be removed.
* @return true if no error occurred, false otherwise.
*/
- virtual bool removeSavefile(const char *name) = 0;
+ virtual bool removeSavefile(const String &name) = 0;
/**
* Renames the given savefile.
@@ -132,7 +132,7 @@ public:
* @param newName New name.
* @return true if no error occurred. false otherwise.
*/
- virtual bool renameSavefile(const char *oldName, const char *newName);
+ virtual bool renameSavefile(const String &oldName, const String &newName);
/**
* Request a list of available savegames with a given DOS-style pattern,
@@ -142,7 +142,7 @@ public:
* @return list of strings for all present file names.
* @see Common::matchString()
*/
- virtual Common::StringList listSavefiles(const char *pattern) = 0;
+ virtual StringList listSavefiles(const String &pattern) = 0;
};
} // End of namespace Common