update logging and add pl splash as the main one
All checks were successful
Build / Build Launcher (push) Successful in 2m31s
All checks were successful
Build / Build Launcher (push) Successful in 2m31s
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user