WAGE: Simplify savename generation code

This commit is contained in:
Eugene Sandulenko 2016-02-14 14:50:31 +01:00
parent d2303ac6dd
commit eef56e167e

View File

@ -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)