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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user