Skip to content

Save Backup System #1060

Open
Open
@DarioSamo

Description

@DarioSamo

Save files should follow the correct logic to write and overwrite a file while preserving at least one back up.

  1. The save file should be written to a temporary file (.new).
  2. The backup save file should be renamed to a name that indicates it'll be erased (.old).
  3. The current save file should be renamed to the backup save file name (.bak).
  4. The new save file should be renamed to the current name.
  5. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions