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:
parent
7d5d6c2f91
commit
b8aeefaffb
12 changed files with 32 additions and 19 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue