aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wintermute/Base/BGame.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/wintermute/Base/BGame.cpp b/engines/wintermute/Base/BGame.cpp
index b966f3822b..13bfd9fc75 100644
--- a/engines/wintermute/Base/BGame.cpp
+++ b/engines/wintermute/Base/BGame.cpp
@@ -61,6 +61,8 @@
#include "engines/wintermute/Base/scriptables/SXStore.h"
#include "engines/wintermute/video/VidPlayer.h"
#include "engines/wintermute/video/VidTheoraPlayer.h"
+#include "engines/wintermute/wintermute.h"
+#include "common/savefile.h"
#include "common/textconsole.h"
#include "common/util.h"
#include "common/keyboard.h"
@@ -3950,10 +3952,10 @@ bool CBGame::IsSaveSlotUsed(int Slot) {
char Filename[MAX_PATH + 1];
GetSaveSlotFilename(Slot, Filename);
- Common::SeekableReadStream *File = _fileManager->OpenFile(Filename, false);
+ warning("CBGame::IsSaveSlotUsed(%d) - FIXME, ugly solution", Slot);
+ Common::SeekableReadStream *File = g_wintermute->getSaveFileMan()->openForLoading(Filename);
if (!File) return false;
-
- _fileManager->CloseFile(File);
+ delete File;
return true;
}