From 5268d769531a39591038cf3d0bae206c127252ae Mon Sep 17 00:00:00 2001 From: Lunaretic Date: Thu, 11 Jul 2024 21:14:23 -0400 Subject: [PATCH 1/3] Fix some warnings not proccing due to being on the wrong thread. --- FFXIV_TexTools/MainWindow.xaml.cs | 20 ++++++++++++++----- .../PenumbraLibraryUpgradeWindow.xaml.cs | 5 ++++- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/FFXIV_TexTools/MainWindow.xaml.cs b/FFXIV_TexTools/MainWindow.xaml.cs index 0fcb8b27..0ad9f807 100644 --- a/FFXIV_TexTools/MainWindow.xaml.cs +++ b/FFXIV_TexTools/MainWindow.xaml.cs @@ -548,9 +548,13 @@ await Task.Run(async () => } } - FlexibleMessageBox.Show(("An error occurred while attempting to rebuild the cache. This may be caused by this version of Final Fantasy XIV " + - "not being supported by this version of TexTools.\n\n").L() + ex.Message, "Cache Rebuild Error.".L(), MessageBoxButtons.OK, MessageBoxIcon.Error, - MessageBoxDefaultButton.Button1); + + Application.Current.Dispatcher.Invoke(() => + { + FlexibleMessageBox.Show(("An error occurred while attempting to rebuild the cache. This may be caused by this version of Final Fantasy XIV " + + "not being supported by this version of TexTools.\n\n").L() + ex.Message, "Cache Rebuild Error.".L(), MessageBoxButtons.OK, MessageBoxIcon.Error, + MessageBoxDefaultButton.Button1); + }); } try @@ -559,12 +563,18 @@ await Task.Run(async () => if (!await tx.FileExists(Eqp.DawntrailTestFile, true)) { - this.ShowWarning("Non-Dawntrail Install", "TexTools is currently assigned to a Endwalker or previous install.\n\nMany parts of the application will not operate correctly on old FFXIV installs."); + Application.Current.Dispatcher.Invoke(() => + { + this.ShowWarning("Non-Dawntrail Install", "TexTools is currently assigned to a Endwalker or previous install.\n\nMany parts of the application will not operate correctly on old FFXIV installs."); + }); } } catch(Exception ex) { - this.ShowWarning("Unable to read base game files. FFXIV Install location may be corrupt or invalid:\n" + Settings.Default.FFXIV_Directory, "Unable to Read Files"); + Application.Current.Dispatcher.Invoke(() => + { + this.ShowWarning("Unable to read base game files. FFXIV Install location may be corrupt or invalid:\n" + Settings.Default.FFXIV_Directory, "Unable to Read Files"); + }); } await Dispatcher.Invoke(async () => diff --git a/FFXIV_TexTools/Views/Upgrades/PenumbraLibraryUpgradeWindow.xaml.cs b/FFXIV_TexTools/Views/Upgrades/PenumbraLibraryUpgradeWindow.xaml.cs index e127e977..f5056b4b 100644 --- a/FFXIV_TexTools/Views/Upgrades/PenumbraLibraryUpgradeWindow.xaml.cs +++ b/FFXIV_TexTools/Views/Upgrades/PenumbraLibraryUpgradeWindow.xaml.cs @@ -397,7 +397,10 @@ await Task.Run(async () => } catch { - ViewHelpers.ShowWarning(this, "Temp File Clear Error", "Unable to clear TexTools temp folder.\nThe mod as converted successfully, cannot clear its temp folder due to unusual permissions issues with some mod file that was used.\n\nPlease manually delete the folder: %TEMP%/xivmf/\n\n(The upgrade process has been paused.)"); + Application.Current.Dispatcher.Invoke(() => + { + ViewHelpers.ShowWarning(this, "Temp File Clear Error", "Unable to clear TexTools temp folder.\nThe mod as converted successfully, cannot clear its temp folder due to unusual permissions issues with some mod file that was used.\n\nPlease manually delete the folder: %TEMP%/xivmf/\n\n(The upgrade process has been paused.)"); + }); _RequestStop = true; } From ea49181651672b9f7f66f3e1df327b72b6f3ce6f Mon Sep 17 00:00:00 2001 From: Lunaretic Date: Thu, 11 Jul 2024 21:15:25 -0400 Subject: [PATCH 2/3] ver --- FFXIV_TexTools/FFXIV_TexTools.csproj | 6 +++--- lib/xivModdingFramework | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/FFXIV_TexTools/FFXIV_TexTools.csproj b/FFXIV_TexTools/FFXIV_TexTools.csproj index 81d64b15..c24a2421 100644 --- a/FFXIV_TexTools/FFXIV_TexTools.csproj +++ b/FFXIV_TexTools/FFXIV_TexTools.csproj @@ -23,9 +23,9 @@ FFXIV_TexTools Copyright © 2024 - 3.0.5.4 - 3.0.5.4 - 3.0.5.4 + 3.0.5.5 + 3.0.5.5 + 3.0.5.5 9.0 true diff --git a/lib/xivModdingFramework b/lib/xivModdingFramework index 8ecf7aa0..e0ab67b5 160000 --- a/lib/xivModdingFramework +++ b/lib/xivModdingFramework @@ -1 +1 @@ -Subproject commit 8ecf7aa0600a4460cce02d8e6f34e142575ea34f +Subproject commit e0ab67b5feeb8c621659c3a069ee06ca07cba769 From 938be474f50495358b33af619f1bca2a0dd06a67 Mon Sep 17 00:00:00 2001 From: Lunaretic Date: Thu, 11 Jul 2024 21:15:43 -0400 Subject: [PATCH 3/3] Update Framework Reference to Update v3.0.5.5 --- lib/xivModdingFramework | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xivModdingFramework b/lib/xivModdingFramework index e0ab67b5..0ea2ed07 160000 --- a/lib/xivModdingFramework +++ b/lib/xivModdingFramework @@ -1 +1 @@ -Subproject commit e0ab67b5feeb8c621659c3a069ee06ca07cba769 +Subproject commit 0ea2ed072c6dd429dcb16bed2f951f0b3414cab1