diff options
author | Einar Johan Trøan Sømåen | 2012-07-18 19:30:24 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-18 19:30:24 +0200 |
commit | b02711c4cb8e1bc82856b1d75a7752381ae7cfba (patch) | |
tree | f7deeee81d579eb1416745352d0ef51cdf203576 /engines | |
parent | 28794036edb5a1441ff9ba88a455205859416b43 (diff) | |
download | scummvm-rg350-b02711c4cb8e1bc82856b1d75a7752381ae7cfba.tar.gz scummvm-rg350-b02711c4cb8e1bc82856b1d75a7752381ae7cfba.tar.bz2 scummvm-rg350-b02711c4cb8e1bc82856b1d75a7752381ae7cfba.zip |
WINTERMUTE: Use saveFileMan for removing saveFiles.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wintermute/Base/BGame.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/Base/BGame.cpp b/engines/wintermute/Base/BGame.cpp index 32242a5313..054029ae35 100644 --- a/engines/wintermute/Base/BGame.cpp +++ b/engines/wintermute/Base/BGame.cpp @@ -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;
}
|