Merge branch 'master' of https://github.com/Regalis11/Barotrauma into develop

This commit is contained in:
EvilFactory
2023-03-13 13:32:14 -03:00
335 changed files with 11052 additions and 5179 deletions
@@ -235,9 +235,8 @@ namespace Barotrauma
LuaCs = new LuaCsSetup();
GameSettings.Init();
CreatureMetrics.Init();
Md5Hash.Cache.Load();
ConsoleArguments = args;
try
@@ -755,7 +754,7 @@ namespace Barotrauma
}
else if (HasLoaded)
{
if (ConnectCommand is Some<ConnectCommand> { Value: var connectCommand })
if (ConnectCommand.TryUnwrap(out var connectCommand))
{
if (Client != null)
{
@@ -1081,6 +1080,7 @@ namespace Barotrauma
public static void QuitToMainMenu(bool save)
{
CreatureMetrics.Save();
if (save)
{
GUI.SetSavingIndicatorState(true);
@@ -1188,6 +1188,7 @@ namespace Barotrauma
protected override void OnExiting(object sender, EventArgs args)
{
exiting = true;
CreatureMetrics.Save();
DebugConsole.NewMessage("Exiting...");
Client?.Quit();
SteamManager.ShutDown();