aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-02-14 14:50:31 +0100
committerEugene Sandulenko2016-02-14 17:13:24 +0100
commiteef56e167e481e413bd4c616e7c915e834c74726 (patch)
tree47084ad8e1c5c7c5555388420e8968ac921f4521
parentd2303ac6dda77440a4ce41f83c1f11aa8e497e9f (diff)
downloadscummvm-rg350-eef56e167e481e413bd4c616e7c915e834c74726.tar.gz
scummvm-rg350-eef56e167e481e413bd4c616e7c915e834c74726.tar.bz2
scummvm-rg350-eef56e167e481e413bd4c616e7c915e834c74726.zip
WAGE: Simplify savename generation code
-rw-r--r--engines/wage/detection.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/wage/detection.cpp b/engines/wage/detection.cpp
index fd79eb69d3..e03c447484 100644
--- a/engines/wage/detection.cpp
+++ b/engines/wage/detection.cpp
@@ -216,9 +216,7 @@ SaveStateList WageMetaEngine::listSaves(const char *target) const {
int WageMetaEngine::getMaximumSaveSlot() const { return 999; }
void WageMetaEngine::removeSaveState(const char *target, int slot) const {
- char fileName[MAXPATHLEN];
- sprintf(fileName, "%s.%03d", target, slot);
- g_system->getSavefileManager()->removeSavefile(fileName);
+ g_system->getSavefileManager()->removeSavefile(Common::String::format("%s.%03d", target, slot));
}
#if PLUGIN_ENABLED_DYNAMIC(WAGE)