mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 00:07:59 +00:00
QUEEN: Replace snprintf() instance with Common::String::format()
Safer and less portability issues.
This commit is contained in:
parent
da1f4e431d
commit
9e86b0bea1
@ -168,11 +168,8 @@ SaveStateList QueenMetaEngine::listSaves(const char *target) const {
|
||||
}
|
||||
|
||||
void QueenMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||
char extension[6];
|
||||
snprintf(extension, sizeof(extension), ".s%02d", slot);
|
||||
|
||||
Common::String filename = target;
|
||||
filename += extension;
|
||||
filename += Common::String::format(".s%02d", slot);
|
||||
|
||||
g_system->getSavefileManager()->removeSavefile(filename);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user