WINTERMUTE: Use saveFileMan for removing saveFiles.

This commit is contained in:
Einar Johan Trøan Sømåen 2012-07-18 19:30:24 +02:00
parent 28794036ed
commit b02711c4cb

View File

@ -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;
}