Update OtterGui and maybe handle dependency issues.

This commit is contained in:
Ottermandias 2024-01-14 19:28:31 +01:00
parent f147e66953
commit 70e72f5790
3 changed files with 10 additions and 0 deletions

View file

@ -27,7 +27,17 @@ public static class TextureDrawer
} }
else if (texture.LoadError != null) else if (texture.LoadError != null)
{ {
const string link = "https://aka.ms/vcredist";
ImGui.TextUnformatted("Could not load file:"); ImGui.TextUnformatted("Could not load file:");
if (texture.LoadError is DllNotFoundException)
{
ImGuiUtil.TextColored(Colors.RegexWarningBorder, "A texture handling dependency could not be found. Try installing a current Microsoft VC Redistributable.");
if (ImGui.Button("Microsoft VC Redistributables"))
Dalamud.Utility.Util.OpenLink(link);
ImGuiUtil.HoverTooltip($"Open {link} in your browser.");
}
ImGuiUtil.TextColored(Colors.RegexWarningBorder, texture.LoadError.ToString()); ImGuiUtil.TextColored(Colors.RegexWarningBorder, texture.LoadError.ToString());
} }
} }

Binary file not shown.

Binary file not shown.