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

@ -132,7 +132,7 @@ uint32 Sword2Engine::saveData(uint16 slotNo, byte *buffer, uint32 bufferSize) {
}
out->write(buffer, bufferSize);
out->flush();
out->finalize();
if (!out->ioFailed()) {
delete out;