From b8aeefaffb2ecdc9da5594a49cfba87a84e55d4e Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 17 Feb 2007 18:55:51 +0000 Subject: 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 --- engines/touche/saveload.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/touche/saveload.cpp') 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 { -- cgit v1.2.3