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
|
@ -211,7 +211,7 @@ void SagaEngine::save(const char *fileName, const char *saveName) {
|
|||
out->writeSint16LE(_isoMap->getMapPosition().x);
|
||||
out->writeSint16LE(_isoMap->getMapPosition().y);
|
||||
|
||||
out->flush();
|
||||
out->finalize();
|
||||
|
||||
// TODO: Check out->ioFailed()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue