update.sh: keep save backups in the checkout

Default to ./saves-backup, outside local/; SAVES_BACKUP_DIR still overrides it. The folder is ignored.
This commit is contained in:
goldfishdev
2026-12-03 11:32:41 -06:00
parent 383b18cec4
commit ecc2ec1791
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -78,6 +78,7 @@ Thumbs.db
# Fetched, built or written by setup.sh and run.sh
/deps
/local
/saves-backup
/run.conf
/probe/
/bisect/

View File

@ -17,7 +17,7 @@ fi
# only copy with it.
backup_saves() {
local src=${SAVES_DATA_DIR:-$PWD/local/data/7952987A}
local dest=${SAVES_BACKUP_DIR:-$HOME/Games/GTA6/saves}
local dest=${SAVES_BACKUP_DIR:-$PWD/saves-backup}
local files=()
[ -d "$src/saves" ] && files+=(saves)
[ -e "$src/storage/settings" ] && files+=(storage/settings)