Update for latest version of the game, and print plugin load errors to console if no window is currently open

This commit is contained in:
2023-08-31 14:49:26 -04:00
parent 9d5f00b7e0
commit 888c14c694
7 changed files with 26 additions and 12 deletions

View File

@@ -90,7 +90,16 @@ public class GitHubPlugin : PluginData
}
else
{
a = Assembly.LoadFile(dllFile);
try
{
a = Assembly.LoadFile(dllFile);
}
catch
{
LogFile.WriteLine($"Error loading {dllFile}, deleting file");
File.Delete(dllFile);
throw;
}
}
Version = a.GetName().Version;