Preserve CyberFoil across clean install backup/restore.
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:
2026-06-14 17:31:46 +02:00
parent d6ec345cce
commit c0741beda3
4 changed files with 72 additions and 4 deletions

View File

@@ -34,7 +34,7 @@
// Clean mode: Backup user data
int clean_mode_backup(void) {
set_color(COLOR_CYAN);
gfx_printf(" Sichere: DBI (dbi.config), prod.keys\n");
gfx_printf(" Sichere: CyberFoil, DBI (dbi.config), prod.keys\n");
set_color(COLOR_WHITE);
int res = backup_user_data();
if (res == FR_OK) {
@@ -95,7 +95,7 @@ int clean_mode_wipe(void) {
// Clean mode: Restore user data
int clean_mode_restore(void) {
set_color(COLOR_CYAN);
gfx_printf(" Stelle wieder her: DBI (dbi.config), prod.keys\n");
gfx_printf(" Stelle wieder her: CyberFoil, DBI (dbi.config), prod.keys\n");
set_color(COLOR_WHITE);
int res = restore_user_data();
if (res == FR_OK) {