Add Borealis GUI for patch extraction on Switch.
All checks were successful
Build NRO / build (push) Successful in 1m48s
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:
25
source/main.cpp
Normal file
25
source/main.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user