diff options
author | Max Horn | 2009-05-29 14:38:22 +0000 |
---|---|---|
committer | Max Horn | 2009-05-29 14:38:22 +0000 |
commit | fb79b185717c9aae7c793e7f07d5d6b94aec4abf (patch) | |
tree | 6df973c3f64d5712d6df36caa0af30b6b6012561 /engines/tinsel | |
parent | 518e005ec27ef323275b364a3cd16d24d7491674 (diff) | |
download | scummvm-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 'engines/tinsel')
-rw-r--r-- | engines/tinsel/detection.cpp | 4 | ||||
-rw-r--r-- | engines/tinsel/saveload.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/tinsel/detection.cpp b/engines/tinsel/detection.cpp index 2bcf45e582..a36c35f10e 100644 --- a/engines/tinsel/detection.cpp +++ b/engines/tinsel/detection.cpp @@ -569,7 +569,7 @@ extern bool MoviePlaying(); SaveStateList TinselMetaEngine::listSaves(const char *target) const { Common::String pattern = target; pattern = pattern + ".???"; - Common::StringList files = g_system->getSavefileManager()->listSavefiles(pattern.c_str()); + Common::StringList files = g_system->getSavefileManager()->listSavefiles(pattern); sort(files.begin(), files.end()); // Sort (hopefully ensuring we are sorted numerically..) SaveStateList saveList; @@ -579,7 +579,7 @@ SaveStateList TinselMetaEngine::listSaves(const char *target) const { slotNum = atoi(file->c_str() + file->size() - 3); const Common::String &fname = *file; - Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(fname.c_str()); + Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(fname); if (in) { in->readUint32LE(); // skip id in->readUint32LE(); // skip size diff --git a/engines/tinsel/saveload.cpp b/engines/tinsel/saveload.cpp index 4d305e15cf..62bcc732a8 100644 --- a/engines/tinsel/saveload.cpp +++ b/engines/tinsel/saveload.cpp @@ -309,7 +309,7 @@ int getList(Common::SaveFileManager *saveFileMan, const Common::String &target) int i; const Common::String pattern = target + ".???"; - Common::StringList files = saveFileMan->listSavefiles(pattern.c_str()); + Common::StringList files = saveFileMan->listSavefiles(pattern); numSfiles = 0; @@ -318,7 +318,7 @@ int getList(Common::SaveFileManager *saveFileMan, const Common::String &target) break; const Common::String &fname = *file; - Common::InSaveFile *f = saveFileMan->openForLoading(fname.c_str()); + Common::InSaveFile *f = saveFileMan->openForLoading(fname); if (f == NULL) { continue; } |