mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 19:32:11 +00:00
WINTERMUTE: Use saveFileMan for removing saveFiles.
This commit is contained in:
parent
28794036ed
commit
b02711c4cb
@ -3871,9 +3871,9 @@ bool CBGame::isSaveSlotUsed(int slot) {
|
||||
bool CBGame::emptySaveSlot(int slot) {
|
||||
char filename[MAX_PATH_LENGTH + 1];
|
||||
getSaveSlotFilename(slot, filename);
|
||||
|
||||
CBPlatform::deleteFile(filename);
|
||||
|
||||
CBPersistMgr *pm = new CBPersistMgr(this);
|
||||
g_wintermute->getSaveFileMan()->removeSavefile(pm->getFilenameForSlot(slot));
|
||||
delete pm;
|
||||
return STATUS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user