Skip the launcher with the -launch flag

This fixes #205
This commit is contained in:
momo5502 2023-02-19 20:28:17 +01:00
parent 0d07b39756
commit a5f8044286
2 changed files with 4 additions and 4 deletions

View File

@ -5,14 +5,11 @@
#include "html/html_window.hpp"
#include "resource.hpp"
#include "component/updater.hpp"
namespace launcher
{
bool run()
{
updater::update();
bool run_game = false;
html_window window("BOIII", 550, 380);

View File

@ -13,6 +13,7 @@
#include "game/game.hpp"
#include "launcher/launcher.hpp"
#include "component/updater.hpp"
namespace
{
@ -288,8 +289,10 @@ namespace
if (!is_server)
{
trigger_high_performance_gpu_switch();
updater::update();
if (!launcher::run())
const auto launch = utils::flags::has_flag("launch");
if (!launch && !launcher::run())
{
return 0;
}