← Back to team overview

widelands-dev team mailing list archive

[Merge] lp:~widelands-dev/widelands/bug-1753230-working-with-tempfiles into lp:widelands


The proposal to merge lp:~widelands-dev/widelands/bug-1753230-working-with-tempfiles into lp:widelands has been updated.

Commit message changed to:

Fix bugs with missing files/folders in savegames

- Whenever a map is fully loaded (editor/game/replay) the map is
  immediately saved to a temp file and the map's filesystem is
  reassigned to that temp file in a special directory.
  So, when map/save files are handled anywhere, there won't be any
  filesystem conflicts with or even accidentally deletion of the map
  filesystem (which would lead to corrupt save files later).

- Temp files are automatically deleted when not needed any more.

- Upon application start, any found temp files that are older than a week
  are considered accidental leftovers (e.g. from crashes) and deleted.

For more details, see:
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug-1753230-working-with-tempfiles into lp:widelands.