Fix self-delete to run only after successful extraction (v1.1.1).
All checks were successful
Build NRO / build (push) Successful in 1m44s

Only remove PatchExtractor.nro on exit when the Done screen was reached;
early quit no longer deletes the NRO. Drop the ineffective mid-run self-delete.
This commit is contained in:
2026-05-28 22:46:02 +02:00
parent c525a80e6e
commit abea3f8765
6 changed files with 17 additions and 6 deletions

View File

@@ -116,9 +116,6 @@ bool PatchExtractor::cleanup() {
if (remove(PATCHES_ZIP) != 0)
cleanupOk_ = false;
// Cannot delete our own NRO while the app is still running; try anyway for edge cases.
remove(SELF_NRO);
remove("sdmc:/switch/.PatchExtractor.nro.star");
remove("sdmc:/switch/.packages/boot_package.ini");