aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-06-16 16:39:02 +0200
committerEinar Johan Trøan Sømåen2012-06-16 16:39:02 +0200
commit0f6a87ae95dfa6ef122ba75a0a65a114616189ba (patch)
tree3851cb97688c6bc0dab1e6475d5d3a3357a8c6d4
parent3d4495d1ceb7e4e6fbb4dafa2df388804f2bf783 (diff)
downloadscummvm-rg350-0f6a87ae95dfa6ef122ba75a0a65a114616189ba.tar.gz
scummvm-rg350-0f6a87ae95dfa6ef122ba75a0a65a114616189ba.tar.bz2
scummvm-rg350-0f6a87ae95dfa6ef122ba75a0a65a114616189ba.zip
WINTERMUTE: Make saves get listed properly
-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;
}