mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Update OtterGui and maybe handle dependency issues.
This commit is contained in:
parent
f147e66953
commit
70e72f5790
3 changed files with 10 additions and 0 deletions
|
|
@ -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.
Loading…
Add table
Add a link
Reference in a new issue