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.
28 lines
639 B
C++
28 lines
639 B
C++
#include <borealis.hpp>
|
|
|
|
#include "extractor.hpp"
|
|
#include "patch_activity.hpp"
|
|
|
|
int main(int argc, char* argv[]) {
|
|
(void)argc;
|
|
(void)argv;
|
|
|
|
brls::Logger::setLogLevel(brls::LogLevel::WARNING);
|
|
|
|
if (!brls::Application::init()) {
|
|
brls::Logger::error("Borealis init failed");
|
|
return 1;
|
|
}
|
|
|
|
brls::Application::createWindow("PatchExtractor");
|
|
brls::Application::setGlobalQuit(true);
|
|
brls::Application::pushActivity(new PatchActivity());
|
|
|
|
while (brls::Application::mainLoop()) {}
|
|
|
|
if (PatchActivity::shouldDeleteSelfOnExit())
|
|
PatchExtractor::tryDeleteSelfOnExit();
|
|
|
|
return 0;
|
|
}
|