Turn the acl unloading warning into just a debug message

This commit is contained in:
EvilFactory
2023-12-10 12:29:11 -03:00
parent 9149fcbdc4
commit 4fa52406a0
@@ -309,16 +309,15 @@ public sealed class CsPackageManager : IDisposable
_assemblyManager.FinalizeDispose(); //Update lists _assemblyManager.FinalizeDispose(); //Update lists
if (_assemblyManager.IsCurrentlyUnloading) if (_assemblyManager.IsCurrentlyUnloading)
{ {
ModUtils.Logging.PrintWarning($"WARNING: Some mods from a previous session (lobby) are still loaded! This may result in undefined behaviour!\nIf you notice any odd behaviour that only occurs after multiple lobbies, please restart your game."); ModUtils.Logging.PrintMessage($"The below ACLs are still unloading:");
ModUtils.Logging.PrintWarning($"The below ACLs are still unloading:");
foreach (var wkref in _assemblyManager.StillUnloadingACLs) foreach (var wkref in _assemblyManager.StillUnloadingACLs)
{ {
if (wkref.TryGetTarget(out var tgt)) if (wkref.TryGetTarget(out var tgt))
{ {
ModUtils.Logging.PrintWarning($"ACL Name: {tgt.FriendlyName}"); ModUtils.Logging.PrintMessage($"ACL Name: {tgt.FriendlyName}");
foreach (Assembly assembly in tgt.Assemblies) foreach (Assembly assembly in tgt.Assemblies)
{ {
ModUtils.Logging.PrintWarning($"-- Assembly: {assembly.GetName()}"); ModUtils.Logging.PrintMessage($"-- Assembly: {assembly.GetName()}");
} }
} }
} }