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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue