fix(IM): actually log DllNotFoundException

This commit is contained in:
goat 2021-10-11 01:47:53 +02:00
parent 5ff5b68a1a
commit 19fc88e29d
No known key found for this signature in database
GPG key ID: 7773BB5B43BA52E5

View file

@ -336,8 +336,10 @@ namespace Dalamud.Interface.Internal
{ {
this.scene = new RawDX11Scene(swapChain); this.scene = new RawDX11Scene(swapChain);
} }
catch (DllNotFoundException) catch (DllNotFoundException ex)
{ {
Log.Error(ex, "Could not load ImGui dependencies.");
var res = PInvoke.User32.MessageBox( var res = PInvoke.User32.MessageBox(
IntPtr.Zero, IntPtr.Zero,
"Dalamud plugins require the Microsoft Visual C++ Redistributable to be installed.\nPlease install the runtime from the official Microsoft website or disable Dalamud.\n\nDo you want to download the redistributable now?", "Dalamud plugins require the Microsoft Visual C++ Redistributable to be installed.\nPlease install the runtime from the official Microsoft website or disable Dalamud.\n\nDo you want to download the redistributable now?",