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

@@ -57,6 +57,11 @@ public static class LoaderTools
if (hwnd != IntPtr.Zero)
WinRT.Interop.InitializeWithWindow.Initialize(dialog, hwnd);
else
{
Console.WriteLine(message);
return DialogResult.Cancel;
}
var result = dialog.ShowAsync().AsTask().Result;