1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-09 23:00:57 -05:00

remove some old web components, add command line args for no-confirm (skip unreachable server prompt) and kestrel request settings

This commit is contained in:
RaidMax
2023-05-30 14:58:17 -05:00
parent d0e39b240a
commit 55e5f4699e
8 changed files with 35 additions and 176 deletions

View File

@ -581,9 +581,9 @@ namespace IW4MAdmin.Application
throw lastException;
}
if (successServers != config.Servers.Length)
if (successServers != config.Servers.Length && !AppContext.TryGetSwitch("NoConfirmPrompt", out _))
{
if (!Utilities.PromptBool(Utilities.CurrentLocalization.LocalizationIndex["MANAGER_START_WITH_ERRORS"]))
if (!Utilities.CurrentLocalization.LocalizationIndex["MANAGER_START_WITH_ERRORS"].PromptBool())
{
throw lastException;
}