flexlay
flexlay copied to clipboard
Crash During Write Damages Target
A crash or other interrupt of the writing to a level file leaves it in a half-written state. This means the level cannot be used any longer.
Is it worth creating a temporary 'previous' file?
- write to
temp-file - rename
original-filetooriginal-file~ - rename
temp-filetooriginal-file
That should be reasonably save and be pretty easy to implement.