Add Borealis GUI for patch extraction on Switch.
All checks were successful
Build NRO / build (push) Successful in 1m48s

Replace the console UI with a Borealis-based flow, bundle ROMFS assets and
borealis as a submodule, and apply small upstream patches at build time.
Self-delete runs after romfsExit on quit so the NRO can be removed like the
old console build.
This commit is contained in:
2026-05-28 22:22:44 +02:00
parent 828edf6ad2
commit 2cf3db2097
19 changed files with 956 additions and 214 deletions

25
source/main.cpp Normal file
View File

@@ -0,0 +1,25 @@
#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()) {}
PatchExtractor::tryDeleteSelfOnExit();
return 0;
}