update logging and add pl splash as the main one
All checks were successful
Build / Build Launcher (push) Successful in 2m31s

This commit is contained in:
zznty
2024-05-31 17:12:08 +07:00
parent fc69ee8e83
commit 9fb29d2011
28 changed files with 364 additions and 318 deletions

View File

@@ -5,6 +5,7 @@ using System.Security.Cryptography;
using System.Text;
using Windows.UI.Popups;
using HarmonyLib;
using NLog;
using PluginLoader.SEPM;
using Sandbox;
using Sandbox.Game.World;
@@ -94,12 +95,12 @@ public static class LoaderTools
public static void UnloadAndRestart()
{
LogFile.Dispose();
MySessionLoader.Unload();
MySandboxGame.Config.ControllerDefaultOnStart = MyInput.Static.IsJoystickLastUsed;
MySandboxGame.Config.Save();
MyScreenManager.CloseAllScreensNowExcept(null);
MyPlugins.Unload();
LogManager.Flush();
Restart();
}
@@ -176,7 +177,7 @@ public static class LoaderTools
}
catch (Exception e)
{
LogFile.WriteGameLog("Error while opening file dialog: " + e);
LogFile.Log.Error(e, "Error while opening file dialog");
}
}
@@ -207,7 +208,7 @@ public static class LoaderTools
}
catch (Exception e)
{
LogFile.WriteGameLog("Error while opening file dialog: " + e);
LogFile.Log.Error(e, "Error while opening file dialog");
}
}
}