[Download]: Add flag to disable web server

This commit is contained in:
FutureRave 2023-01-20 07:49:20 +00:00
parent 77e8e1f8d5
commit c779ae605d
No known key found for this signature in database
GPG Key ID: 22F9079C86CFAB31

View File

@ -653,6 +653,8 @@ namespace Components
AssertSize(Game::TraceThreadInfo, 0x8); AssertSize(Game::TraceThreadInfo, 0x8);
if (Dedicated::IsEnabled()) if (Dedicated::IsEnabled())
{
if (!Flags::HasFlag("disable-mongoose"))
{ {
mg_mgr_init(&Mgr); mg_mgr_init(&Mgr);
@ -678,6 +680,7 @@ namespace Components
} }
}); });
} }
}
else else
{ {
Scheduler::Once([] Scheduler::Once([]