Merge branch 'master' of https://github.com/Regalis11/Barotrauma into develop
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user