@Derakon:
Tiburon's most important point still holds: without forcing a sync to disk after the write, it is risky to delete the old save file.
The right thing to do in panic save situations is to save an alternative save file, and not overwrite the original.
Additionally, exit events from the OS (rather than from the user) should be treated as panic saves.
In robust apps, on opening a file with a panic save, the app gives you the choice to attempt to recover the panic save. If it succeeds, the original is deleted.
Tiburon's most important point still holds: without forcing a sync to disk after the write, it is risky to delete the old save file.
The right thing to do in panic save situations is to save an alternative save file, and not overwrite the original.
Additionally, exit events from the OS (rather than from the user) should be treated as panic saves.
In robust apps, on opening a file with a panic save, the app gives you the choice to attempt to recover the panic save. If it succeeds, the original is deleted.
Comment