Replace the project-owned 2026 copyright owner in src headers from Switchroot to NiklasCFW while leaving vendored third-party notices unchanged.
57 lines
1.3 KiB
C++
57 lines
1.3 KiB
C++
/*
|
|
SWR INI Tool - Switchroot INI Configuration Editor
|
|
Copyright (C) 2026 NiklasCFW
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string>
|
|
|
|
#include <borealis.hpp>
|
|
|
|
#include "main_frame.h"
|
|
#include "logo.h"
|
|
#include "app_config.h"
|
|
#include "i18n.h"
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
I18n::init();
|
|
|
|
// Init the app
|
|
if (!brls::Application::init(I18n::appTitle()))
|
|
{
|
|
brls::Logger::error("Unable to init Borealis application");
|
|
return EXIT_FAILURE;
|
|
}
|
|
|
|
// Verbose logging on PC
|
|
#ifndef __SWITCH__
|
|
brls::Logger::setLogLevel(brls::LogLevel::DEBUG);
|
|
#endif
|
|
|
|
// Load saved path configuration
|
|
AppConfig::get().load();
|
|
|
|
// Load custom font for logo
|
|
if (brls::Application::loadFont(LOGO_FONT_NAME, LOGO_FONT_PATH) < 0)
|
|
{
|
|
brls::Logger::error("Failed to load logo font");
|
|
}
|
|
|
|
// Create and push the main frame
|
|
MainFrame *mainFrame = new MainFrame();
|
|
brls::Application::pushView(mainFrame);
|
|
|
|
// Run the app
|
|
while (brls::Application::mainLoop())
|
|
;
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|