aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorMax Horn2007-02-17 18:55:51 +0000
committerMax Horn2007-02-17 18:55:51 +0000
commitb8aeefaffb2ecdc9da5594a49cfba87a84e55d4e (patch)
tree4115d12166111ec170729e268f9161dd5b6b2009 /engines/scumm
parent7d5d6c2f91287a286a65fe652c62462dce9b2e62 (diff)
downloadscummvm-rg350-b8aeefaffb2ecdc9da5594a49cfba87a84e55d4e.tar.gz
scummvm-rg350-b8aeefaffb2ecdc9da5594a49cfba87a84e55d4e.tar.bz2
scummvm-rg350-b8aeefaffb2ecdc9da5594a49cfba87a84e55d4e.zip
Added finalize() method to Common::OutSaveFile (which by default just flushes the stream), changed engines to call that before deleting OutSaveFile instances (instead of just flushing)
svn-id: r25660
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/saveload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp
index 25988c5122..fdcd111fe8 100644
--- a/engines/scumm/saveload.cpp
+++ b/engines/scumm/saveload.cpp
@@ -109,7 +109,7 @@ bool ScummEngine::saveState(int slot, bool compat) {
Serializer ser(0, out, CURRENT_VER);
saveOrLoad(&ser);
- out->flush();
+ out->finalize();
if (out->ioFailed()) {
delete out;
debug(1, "State save as '%s' FAILED", filename);