From 19fc88e29d4b2641b559927eca362f09d8e0dab9 Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Mon, 11 Oct 2021 01:47:53 +0200 Subject: [PATCH] fix(IM): actually log DllNotFoundException --- Dalamud/Interface/Internal/InterfaceManager.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dalamud/Interface/Internal/InterfaceManager.cs b/Dalamud/Interface/Internal/InterfaceManager.cs index 08fe271d1..5a188c963 100644 --- a/Dalamud/Interface/Internal/InterfaceManager.cs +++ b/Dalamud/Interface/Internal/InterfaceManager.cs @@ -336,8 +336,10 @@ namespace Dalamud.Interface.Internal { this.scene = new RawDX11Scene(swapChain); } - catch (DllNotFoundException) + catch (DllNotFoundException ex) { + Log.Error(ex, "Could not load ImGui dependencies."); + var res = PInvoke.User32.MessageBox( 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?",