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
This commit is contained in:
Max Horn 2007-02-17 18:55:51 +00:00
parent 7d5d6c2f91
commit b8aeefaffb
12 changed files with 32 additions and 19 deletions

View file

@ -362,7 +362,7 @@ void KyraEngine::saveGame(const char *fileName, const char *saveName) {
out->writeByte(_curSfxFile);
out->flush();
out->finalize();
// check for errors
if (out->ioFailed())