hedge-dev / hedge-dev/UnleashedRecomp
Save Backup System
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 5.1k
- Forks
- 421
- PR merge metrics
- No merged PRs in 30d
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by locating the save-file write and overwrite logic, then trace how failures are handled. Done means writes use the .new, .old, and .bak sequence, preserve one backup, and reverse all completed changes when any step fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100