From 244462cc77e903cc3684cfc565eb9db8c82aeef0 Mon Sep 17 00:00:00 2001 From: Asval Date: Sun, 26 May 2024 19:18:42 +0200 Subject: [PATCH] FModel v4.4.3.6 --- FModel/Extensions/StringExtensions.cs | 1 + FModel/FModel.csproj | 6 +++--- FModel/ViewModels/ApiEndpoints/FModelApiEndpoint.cs | 2 +- FModel/Views/Snooper/Shading/TextureHelper.cs | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/FModel/Extensions/StringExtensions.cs b/FModel/Extensions/StringExtensions.cs index 95342438..b632865d 100644 --- a/FModel/Extensions/StringExtensions.cs +++ b/FModel/Extensions/StringExtensions.cs @@ -126,6 +126,7 @@ public static class StringExtensions return content.Split("\"")[3]; lineNumber--; + if (lineNumber < 1) break; line = doc.GetLineByNumber(lineNumber); } diff --git a/FModel/FModel.csproj b/FModel/FModel.csproj index 9163c262..1094a287 100644 --- a/FModel/FModel.csproj +++ b/FModel/FModel.csproj @@ -5,9 +5,9 @@ net8.0-windows true FModel.ico - 4.4.3.5 - 4.4.3.5 - 4.4.3.5 + 4.4.3.6 + 4.4.3.6 + 4.4.3.6 false true win-x64 diff --git a/FModel/ViewModels/ApiEndpoints/FModelApiEndpoint.cs b/FModel/ViewModels/ApiEndpoints/FModelApiEndpoint.cs index 498ae089..1fbe18f0 100644 --- a/FModel/ViewModels/ApiEndpoints/FModelApiEndpoint.cs +++ b/FModel/ViewModels/ApiEndpoints/FModelApiEndpoint.cs @@ -176,7 +176,7 @@ public class FModelApiEndpoint : AbstractApiProvider { if (AutoUpdater.DownloadUpdate(args)) { - UserSettings.Default.ShowChangelog = !qa.Value; + UserSettings.Default.ShowChangelog = currentVersion != args.InstalledVersion; UserSettings.Default.CommitHash = qa.CommitHash; Application.Current.Shutdown(); } diff --git a/FModel/Views/Snooper/Shading/TextureHelper.cs b/FModel/Views/Snooper/Shading/TextureHelper.cs index 1cedefb1..1ee8995d 100644 --- a/FModel/Views/Snooper/Shading/TextureHelper.cs +++ b/FModel/Views/Snooper/Shading/TextureHelper.cs @@ -16,6 +16,7 @@ public static class TextureHelper // R: Whatever (AO / S / E / ...) // G: Roughness // B: Metallic + case "GAMEFACE": case "HK_PROJECT": case "COSMICSHAKE": case "PHOENIX":