Preserve Checkpoint saves across clean install backup/restore.

Back up and restore sd:/switch/Checkpoint with CyberFoil and DBI settings during clean installs.
This commit is contained in:
2026-08-22 15:26:02 +02:00
parent 405bed7291
commit 73c2789114
4 changed files with 24 additions and 4 deletions

View File

@@ -21,13 +21,17 @@
#define TEMP_BACKUP_CYBERFOIL_CONFIG TEMP_BACKUP_CYBERFOIL "/config.json"
#define TEMP_BACKUP_CYBERFOIL_REMOTES TEMP_BACKUP_CYBERFOIL "/remotes"
/** Checkpoint save manager; preserved across clean install (full folder). */
#define CHECKPOINT_DIR "sd:/switch/Checkpoint"
#define TEMP_BACKUP_CHECKPOINT TEMP_BACKUP_PATH "/Checkpoint"
/** Live HorizonOC settings (Overclock tool). */
#define HORIZON_OC_CONFIG_PATH "sd:/config/horizon-oc/config.ini"
/** Scratch dir during OC-variant update only; removed after successful restore. */
#define HORIZON_OC_UPDATE_BACKUP_DIR "sd:/.omninx_oc_update"
#define HORIZON_OC_UPDATE_BACKUP_INI HORIZON_OC_UPDATE_BACKUP_DIR "/config.ini"
// Backup user data (CyberFoil, DBI dbi.config, prod.keys) before clean install
// Backup user data (CyberFoil, Checkpoint, DBI dbi.config, prod.keys) before clean install
int backup_user_data(void);
// Restore user data after clean install