Open
Description
Save files should follow the correct logic to write and overwrite a file while preserving at least one back up.
- The save file should be written to a temporary file (
.new
). - The backup save file should be renamed to a name that indicates it'll be erased (
.old
). - The current save file should be renamed to the backup save file name (
.bak
). - The new save file should be renamed to the current name.
- The save file marked for deletion should be erased (
.old
).
Any failure on this process should roll back all changes by executing the logic in reverse.
Metadata
Metadata
Assignees
Labels
No labels