Fix self-delete to run only after successful extraction (v1.1.1).
All checks were successful
Build NRO / build (push) Successful in 1m44s
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:
@@ -20,6 +20,8 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
while (brls::Application::mainLoop()) {}
|
||||
|
||||
PatchExtractor::tryDeleteSelfOnExit();
|
||||
if (PatchActivity::shouldDeleteSelfOnExit())
|
||||
PatchExtractor::tryDeleteSelfOnExit();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user