mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-25 01:49:19 +01:00
Give error information on IMC problems.
This commit is contained in:
parent
a37a8eb5aa
commit
35cff163f8
4 changed files with 76 additions and 33 deletions
|
|
@ -1,12 +1,10 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Numerics;
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Interface.Windowing;
|
||||
using Dalamud.Logging;
|
||||
using ImGuiNET;
|
||||
using OtterGui.Raii;
|
||||
using Penumbra.Mods;
|
||||
using Penumbra.UI.Classes;
|
||||
|
||||
namespace Penumbra.UI;
|
||||
|
|
@ -56,6 +54,25 @@ public sealed partial class ConfigWindow : Window, IDisposable
|
|||
{
|
||||
try
|
||||
{
|
||||
if( Penumbra.ImcExceptions > 0 )
|
||||
{
|
||||
using var color = ImRaii.PushColor( ImGuiCol.Text, Colors.RegexWarningBorder );
|
||||
ImGui.NewLine();
|
||||
ImGui.NewLine();
|
||||
ImGui.TextWrapped( $"There were {Penumbra.ImcExceptions} errors while trying to load IMC files from the game data.\n"
|
||||
+ "This usually means that your game installation was corrupted by updating the game while having TexTools mods still active.\n"
|
||||
+ "It is recommended to not use TexTools and Penumbra (or other Lumina-based tools) at the same time.\n\n"
|
||||
+ "Please use the Launcher's Repair Game Files function to repair your client installation." );
|
||||
color.Pop();
|
||||
|
||||
ImGui.NewLine();
|
||||
ImGui.NewLine();
|
||||
SettingsTab.DrawDiscordButton( 0 );
|
||||
ImGui.SameLine();
|
||||
SettingsTab.DrawSupportButton();
|
||||
return;
|
||||
}
|
||||
|
||||
using var bar = ImRaii.TabBar( string.Empty, ImGuiTabBarFlags.NoTooltip );
|
||||
SetupSizes();
|
||||
_settingsTab.Draw();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue