From 0c94e0fba6b9c255cf26b4bcd223924f008a0339 Mon Sep 17 00:00:00 2001 From: gotmachine <24925209+gotmachine@users.noreply.github.com> Date: Thu, 19 Jan 2023 13:50:22 +0100 Subject: [PATCH] 1.24.1 : Hotfix for issue #112 --- GameData/KSPCommunityFixes/KSPCommunityFixes.version | 2 +- KSPCommunityFixes/Performance/FastLoader.cs | 5 ++++- KSPCommunityFixes/Properties/AssemblyInfo.cs | 4 ++-- README.md | 3 +++ 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/GameData/KSPCommunityFixes/KSPCommunityFixes.version b/GameData/KSPCommunityFixes/KSPCommunityFixes.version index 1062046..b47c680 100644 --- a/GameData/KSPCommunityFixes/KSPCommunityFixes.version +++ b/GameData/KSPCommunityFixes/KSPCommunityFixes.version @@ -2,7 +2,7 @@ "NAME": "KSPCommunityFixes", "URL": "https://raw.githubusercontent.com/KSPModdingLibs/KSPCommunityFixes/master/GameData/KSPCommunityFixes/KSPCommunityFixes.version", "DOWNLOAD": "https://github.com/KSPModdingLibs/KSPCommunityFixes/releases", - "VERSION": {"MAJOR": 1, "MINOR": 24, "PATCH": 0, "BUILD": 0}, + "VERSION": {"MAJOR": 1, "MINOR": 24, "PATCH": 1, "BUILD": 0}, "KSP_VERSION": {"MAJOR": 1, "MINOR": 12, "PATCH": 5}, "KSP_VERSION_MIN": {"MAJOR": 1, "MINOR": 8, "PATCH": 0}, "KSP_VERSION_MAX": {"MAJOR": 1, "MINOR": 12, "PATCH": 5} diff --git a/KSPCommunityFixes/Performance/FastLoader.cs b/KSPCommunityFixes/Performance/FastLoader.cs index 7fa7f11..3a3cd03 100644 --- a/KSPCommunityFixes/Performance/FastLoader.cs +++ b/KSPCommunityFixes/Performance/FastLoader.cs @@ -129,7 +129,7 @@ private void Awake() void Start() { - if (!userOptInChoiceDone) + if (IsPatchEnabled && !userOptInChoiceDone) StartCoroutine(WaitForUserOptIn()); } @@ -138,6 +138,9 @@ void Start() /// void OnDestroy() { + if (!IsPatchEnabled) + return; + harmony.UnpatchAll(HarmonyID); harmony = null; loader = null; diff --git a/KSPCommunityFixes/Properties/AssemblyInfo.cs b/KSPCommunityFixes/Properties/AssemblyInfo.cs index f995ffa..0aed4d8 100644 --- a/KSPCommunityFixes/Properties/AssemblyInfo.cs +++ b/KSPCommunityFixes/Properties/AssemblyInfo.cs @@ -30,7 +30,7 @@ // Revision // [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.24.0.0")] +[assembly: AssemblyFileVersion("1.24.1.0")] -[assembly: KSPAssembly("KSPCommunityFixes", 1, 24, 0)] +[assembly: KSPAssembly("KSPCommunityFixes", 1, 24, 1)] [assembly: KSPAssemblyDependency("MultipleModulePartAPI", 1, 0, 0)] diff --git a/README.md b/README.md index 3d06aa0..cce4888 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,9 @@ If doing so in the `Debug` configuration and if your KSP install is modified to ### Changelog +##### 1.24.1 +- Fixed [issue #112](https://github.com/KSPModdingLibs/KSPCommunityFixes/issues/112) : Cannot dismiss or disable FastLoader opt-in popup on KSP < 1.12.0 + ##### 1.24.0 - Updated for KSP 1.12.5 - New KSP bugfix patch : [ChutePhantomSymmetry](https://github.com/KSPModdingLibs/KSPCommunityFixes/issues/107), fix parachutes in symmetry keeping their spread angle after decoupling.