This repository has been archived on 2026-06-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PatchExtractor/source/main.cpp
niklascfw abea3f8765
All checks were successful
Build NRO / build (push) Successful in 1m44s
Fix self-delete to run only after successful extraction (v1.1.1).
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.
2026-05-28 22:46:02 +02:00

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;
}