Preserve CyberFoil across clean install backup/restore.
All checks were successful
Build / Build (push) Successful in 13s
All checks were successful
Build / Build (push) Successful in 13s
Back up cyberfoil.nro, config.json, and remotes/ when sd:/switch/CyberFoil exists, then restore them after the wipe.
This commit is contained in:
@@ -11,13 +11,23 @@
|
||||
#define DBI_CONFIG_PATH "sd:/switch/DBI/dbi.config"
|
||||
#define TEMP_BACKUP_DBI_CONFIG TEMP_BACKUP_PATH "/dbi.config"
|
||||
|
||||
/** CyberFoil homebrew; preserved across clean install (nro, config, remotes only). */
|
||||
#define CYBERFOIL_DIR "sd:/switch/CyberFoil"
|
||||
#define CYBERFOIL_NRO CYBERFOIL_DIR "/cyberfoil.nro"
|
||||
#define CYBERFOIL_CONFIG CYBERFOIL_DIR "/config.json"
|
||||
#define CYBERFOIL_REMOTES CYBERFOIL_DIR "/remotes"
|
||||
#define TEMP_BACKUP_CYBERFOIL TEMP_BACKUP_PATH "/CyberFoil"
|
||||
#define TEMP_BACKUP_CYBERFOIL_NRO TEMP_BACKUP_CYBERFOIL "/cyberfoil.nro"
|
||||
#define TEMP_BACKUP_CYBERFOIL_CONFIG TEMP_BACKUP_CYBERFOIL "/config.json"
|
||||
#define TEMP_BACKUP_CYBERFOIL_REMOTES TEMP_BACKUP_CYBERFOIL "/remotes"
|
||||
|
||||
/** 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 (DBI dbi.config, prod.keys) before clean install
|
||||
// Backup user data (CyberFoil, DBI dbi.config, prod.keys) before clean install
|
||||
int backup_user_data(void);
|
||||
|
||||
// Restore user data after clean install
|
||||
|
||||
Reference in New Issue
Block a user