flexlay icon indicating copy to clipboard operation
flexlay copied to clipboard

Crash During Write Damages Target

Open Karkus476 opened this issue 10 years ago • 2 comments

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.

Karkus476 avatar Sep 27 '15 20:09 Karkus476

Is it worth creating a temporary 'previous' file?

Karkus476 avatar Sep 27 '15 20:09 Karkus476

  1. write to temp-file
  2. rename original-file to original-file~
  3. rename temp-file to original-file

That should be reasonably save and be pretty easy to implement.

Grumbel avatar Aug 04 '18 17:08 Grumbel