aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/detection.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2008-09-14 21:34:49 +0000
committerJohannes Schickel2008-09-14 21:34:49 +0000
commit77273facda2a01823755f46f9af765aff0ce3d4b (patch)
tree61169e5898495563935d8516146df000002c0216 /engines/scumm/detection.cpp
parent02a846c66911f47c69a031eb5293d5afdb1393d0 (diff)
downloadscummvm-rg350-77273facda2a01823755f46f9af765aff0ce3d4b.tar.gz
scummvm-rg350-77273facda2a01823755f46f9af765aff0ce3d4b.tar.bz2
scummvm-rg350-77273facda2a01823755f46f9af765aff0ce3d4b.zip
Little cleanup.
svn-id: r34543
Diffstat (limited to 'engines/scumm/detection.cpp')
-rw-r--r--engines/scumm/detection.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp
index af1838b27d..ce991a8997 100644
--- a/engines/scumm/detection.cpp
+++ b/engines/scumm/detection.cpp
@@ -979,12 +979,7 @@ SaveStateList ScummMetaEngine::listSaves(const char *target) const {
}
void ScummMetaEngine::removeSaveState(const char *target, int slot) const {
- char extension[6];
- snprintf(extension, sizeof(extension), ".s%02d", slot);
-
- Common::String filename = target;
- filename += extension;
-
+ Common::String filename = ScummEngine::makeSavegameName(target, slot, false);
g_system->getSavefileManager()->removeSavefile(filename.c_str());
}