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:
@@ -91,7 +91,7 @@ public abstract class PluginData : IEquatable<PluginData>
|
||||
|
||||
if (a == null)
|
||||
{
|
||||
LogFile.WriteLine("Failed to load " + ToString());
|
||||
LogFile.Log.Debug("Failed to load " + ToString());
|
||||
Error();
|
||||
return false;
|
||||
}
|
||||
@@ -101,9 +101,9 @@ public abstract class PluginData : IEquatable<PluginData>
|
||||
catch (Exception e)
|
||||
{
|
||||
var name = ToString();
|
||||
LogFile.WriteLine($"Failed to load {name} because of an error: " + e);
|
||||
LogFile.Log.Debug($"Failed to load {name} because of an error: " + e);
|
||||
if (e is MissingMemberException)
|
||||
LogFile.WriteLine($"Is {name} up to date?");
|
||||
LogFile.Log.Debug($"Is {name} up to date?");
|
||||
|
||||
if (e is NotSupportedException && e.Message.Contains("loadFromRemoteSources"))
|
||||
Error($"The plugin {name} was blocked by windows. Please unblock the file in the dll file properties.");
|
||||
@@ -168,7 +168,7 @@ public abstract class PluginData : IEquatable<PluginData>
|
||||
Status = PluginStatus.Blocked;
|
||||
LoaderTools.ShowMessageBox($"Unable to load the plugin {this} because it is not whitelisted!",
|
||||
"Plugin Loader", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
LogFile.WriteLine("Error: " + this + " with an sha256 of " + hash + " is not on the whitelist!");
|
||||
LogFile.Log.Debug("Error: " + this + " with an sha256 of " + hash + " is not on the whitelist!");
|
||||
}
|
||||
|
||||
public abstract void Show();
|
||||
|
Reference in New Issue
Block a user