mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-22 15:43:49 +01:00
feat(savedata): recover from rotating backups on hash mismatch
When primary savedata fails its SHA-256 integrity check, query savedata_backups in recency order and return the first slot that decompresses cleanly. Recovery is read-only — the next successful Save() overwrites the primary with fresh data and a new hash, self-healing the corruption transparently. Closes #178
This commit is contained in:
@@ -165,4 +165,4 @@ golangci-lint run ./... # Must pass with zero errors
|
||||
|
||||
- Branch naming: `feature/`, `fix/`, `refactor/`, `docs/`
|
||||
- Commit messages: conventional commits (`feat:`, `fix:`, `refactor:`, `docs:`)
|
||||
- Update `CHANGELOG.md` under "Unreleased" for all changes
|
||||
- Update `CHANGELOG.md` under "Unreleased" for every feature or fix — one concise line per change (two lines maximum)
|
||||
|
||||
Reference in New Issue
Block a user