aboutsummaryrefslogtreecommitdiff
path: root/backends/saves
diff options
context:
space:
mode:
authorMax Horn2008-01-10 11:54:31 +0000
committerMax Horn2008-01-10 11:54:31 +0000
commit80e776e0fbd69846802cea1c8864369bbf2eb6f3 (patch)
tree4715ec62a50d15d8b895b0524219801999351437 /backends/saves
parent7ed64488a8bedbbf819f0a4ecc26d6e1ac4d6159 (diff)
downloadscummvm-rg350-80e776e0fbd69846802cea1c8864369bbf2eb6f3.tar.gz
scummvm-rg350-80e776e0fbd69846802cea1c8864369bbf2eb6f3.tar.bz2
scummvm-rg350-80e776e0fbd69846802cea1c8864369bbf2eb6f3.zip
Fix DefaultSaveFileManager::listSavefiles to return the savefile *name*, not the *path* (which is meaningless in the context of savefiles)
svn-id: r30373
Diffstat (limited to 'backends/saves')
-rw-r--r--backends/saves/default/default-saves.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/saves/default/default-saves.cpp b/backends/saves/default/default-saves.cpp
index c96ae9dcf6..4312f08fcc 100644
--- a/backends/saves/default/default-saves.cpp
+++ b/backends/saves/default/default-saves.cpp
@@ -122,7 +122,7 @@ Common::StringList DefaultSaveFileManager::listSavefiles(const char *pattern) {
if (savePath.lookupFile(savefiles, search, false, true)) {
for (FSList::const_iterator file = savefiles.begin(); file != savefiles.end(); ++file) {
- results.push_back(file->getPath());
+ results.push_back(file->getName());
}
}