Back up save before overwrite
This commit is contained in:
@@ -467,6 +467,12 @@ GameMode registers the current MVP persistent actor classes, checks
|
||||
`DoesSaveExist`, and calls `LoadCurrentWorld` without clearing existing map
|
||||
actors so map-authored resources and startup content remain owned by the map.
|
||||
|
||||
Backup-before-save is enabled by default through
|
||||
`UAgrarianPersistenceSubsystem::bBackupBeforeSave`. Before overwriting an
|
||||
existing save, `WriteSave` copies the current slot file from `Saved/SaveGames`
|
||||
into `Saved/SaveGames/Backups` with a UTC timestamp. Missing save files simply
|
||||
skip backup creation, which keeps the first save path simple.
|
||||
|
||||
## Testing Gates
|
||||
|
||||
Minimum persistence smoke test:
|
||||
|
||||
Reference in New Issue
Block a user