Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash During Write Damages Target #14

Open
Karkus476 opened this issue Sep 27, 2015 · 2 comments
Open

Crash During Write Damages Target #14

Karkus476 opened this issue Sep 27, 2015 · 2 comments

Comments

@Karkus476
Copy link
Member

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 Karkus476 self-assigned this Sep 27, 2015
@Karkus476
Copy link
Member Author

Is it worth creating a temporary 'previous' file?

@Karkus476 Karkus476 removed their assignment Oct 4, 2015
@Karkus476 Karkus476 modified the milestone: 1.0.0 - ST 0.5.0 Dec 19, 2015
@Grumbel
Copy link
Member

Grumbel commented Aug 4, 2018

  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants