aboutsummaryrefslogtreecommitdiff
path: root/engines/touche
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/touche
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/touche')
-rw-r--r--engines/touche/saveload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/touche/saveload.cpp b/engines/touche/saveload.cpp
index 05ec9b3904..dd29c3c387 100644
--- a/engines/touche/saveload.cpp
+++ b/engines/touche/saveload.cpp
@@ -344,7 +344,7 @@ bool ToucheEngine::saveGameState(int num, const char *description) {
strncpy(headerDescription, description, kGameStateDescriptionLen - 1);
f->write(headerDescription, kGameStateDescriptionLen);
saveGameStateData(f);
- f->flush();
+ f->finalize();
if (!f->ioFailed()) {
saveOk = true;
} else {