- Backup/restore DBI settings file instead of whole DBI folder - Remove Tinfoil folder backup/restore - Adjust deletion_lists_clean.h comments; UI strings in install_clean.c Made-with: Cursor
133 lines
3.3 KiB
C
133 lines
3.3 KiB
C
/*
|
|
* OmniNX Installer - Deletion Lists for Clean Install Mode
|
|
* Deletion policy aligned with NiklasCFW pack clean install (TegraExplorer script):
|
|
* full sd:/atmosphere, bootloader/config subsets, sd:/switch, root + misc, then
|
|
* post-restore paths (e.g. tinfoil db). DBI/prod.keys backup is in backup.c.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
// Entire atmosphere/ tree (NiklasCFW: deldir("sd:/atmosphere"))
|
|
static const char* clean_atmosphere_dirs_to_delete[] = {
|
|
"sd:/atmosphere",
|
|
NULL
|
|
};
|
|
|
|
static const char* clean_atmosphere_contents_dirs_to_delete[] = {
|
|
NULL
|
|
};
|
|
|
|
static const char* clean_atmosphere_files_to_delete[] = {
|
|
NULL
|
|
};
|
|
|
|
// Bootloader directories to delete
|
|
static const char* clean_bootloader_dirs_to_delete[] = {
|
|
"sd:/bootloader/boot",
|
|
"sd:/bootloader/bootlogo",
|
|
"sd:/bootloader/ini2",
|
|
"sd:/bootloader/payloads",
|
|
"sd:/bootloader/reboot",
|
|
"sd:/bootloader/res",
|
|
"sd:/bootloader/sys",
|
|
NULL
|
|
};
|
|
|
|
// Bootloader files to delete
|
|
static const char* clean_bootloader_files_to_delete[] = {
|
|
"sd:/bootloader/ArgonNX.bin",
|
|
"sd:/bootloader/bootlogo.bmp",
|
|
"sd:/bootloader/hekate_ipl.ini",
|
|
"sd:/bootloader/patches.ini",
|
|
"sd:/bootloader/update.bin",
|
|
"sd:/bootloader/ini/EmuMMC ohne Mods.ini",
|
|
NULL
|
|
};
|
|
|
|
// Config directories to delete
|
|
static const char* clean_config_dirs_to_delete[] = {
|
|
"sd:/config/aio-switch-updater",
|
|
"sd:/config/blue_pack_updater",
|
|
"sd:/config/kefir-updater",
|
|
"sd:/config/nx-hbmenu",
|
|
"sd:/config/sys-con",
|
|
"sd:/config/sys-patch",
|
|
"sd:/config/uberhand",
|
|
"sd:/config/ultrahand",
|
|
NULL
|
|
};
|
|
|
|
// Entire switch/ tree (clean install recreates sd:/switch after wipe)
|
|
static const char* clean_switch_dirs_to_delete[] = {
|
|
"sd:/switch",
|
|
NULL
|
|
};
|
|
|
|
static const char* clean_switch_files_to_delete[] = {
|
|
NULL
|
|
};
|
|
|
|
// Root CFW files to delete
|
|
static const char* clean_root_files_to_delete[] = {
|
|
"sd:/boot.dat",
|
|
"sd:/boot.ini",
|
|
"sd:/exosphere.bin",
|
|
"sd:/exosphere.ini",
|
|
"sd:/hbmenu.nro",
|
|
"sd:/install.bat",
|
|
"sd:/license",
|
|
"sd:/loader.bin",
|
|
"sd:/mc-mitm.log",
|
|
"sd:/payload.bin",
|
|
"sd:/update.bin",
|
|
"sd:/version",
|
|
NULL
|
|
};
|
|
|
|
// Miscellaneous directories to delete
|
|
static const char* clean_misc_dirs_to_delete[] = {
|
|
"sd:/argon",
|
|
"sd:/games",
|
|
"sd:/NSPs (Tools)",
|
|
"sd:/Patched Apps",
|
|
"sd:/SaltySD/flags",
|
|
"sd:/SaltySD/patches",
|
|
"sd:/scripts",
|
|
"sd:/TegraExplorer",
|
|
"sd:/themes/systemData",
|
|
"sd:/tools",
|
|
"sd:/warmboot_mariko",
|
|
NULL
|
|
};
|
|
|
|
// Miscellaneous files to delete
|
|
static const char* clean_misc_files_to_delete[] = {
|
|
"sd:/fusee-primary.bin",
|
|
"sd:/fusee.bin",
|
|
"sd:/SaltySD/exceptions.txt",
|
|
"sd:/SaltySD/saltysd_bootstrap.elf",
|
|
"sd:/SaltySD/saltysd_bootstrap32_3k.elf",
|
|
"sd:/SaltySD/saltysd_bootstrap32_5k.elf",
|
|
"sd:/SaltySD/saltysd_core.elf",
|
|
"sd:/SaltySD/saltysd_core32.elf",
|
|
NULL
|
|
};
|
|
|
|
// After DBI/prod.keys restore (NiklasCFW: deldir("sd:/switch/tinfoil/db"))
|
|
static const char* clean_post_restore_dirs_to_delete[] = {
|
|
"sd:/switch/tinfoil/db",
|
|
NULL
|
|
};
|
|
|
|
// Old version marker files to delete (clean install only)
|
|
static const char* old_version_files_to_delete[] = {
|
|
"sd:/1.4.0-pre",
|
|
"sd:/1.4.0-pre-c",
|
|
"sd:/1.4.0-pre-d",
|
|
"sd:/1.4.1",
|
|
"sd:/1.5.0",
|
|
"sd:/1.6.0",
|
|
"sd:/1.6.1",
|
|
NULL
|
|
};
|