From bebf4ce30adb2b7fc94e110d59afa5c1539cec75 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 3 Apr 2024 23:13:13 -0400 Subject: [PATCH] remove Error Handler automatically --- docs/release-notes.md | 1 + src/SMAPI.Installer/InteractiveInstaller.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index 2fe1ac7c5..61e03e9a9 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -4,6 +4,7 @@ ## Upcoming release * For players: * The installer now deletes obsolete files from very old SMAPI versions again. (This was removed in SMAPI 4.0, but many players still had very old versions.) + * The installer now deletes Error Handler automatically if it's at the default path. ## 4.0.4 Released 29 March 2024 for Stardew Valley 1.6.0 or later. diff --git a/src/SMAPI.Installer/InteractiveInstaller.cs b/src/SMAPI.Installer/InteractiveInstaller.cs index 4f7a46f00..0bf5a1ace 100644 --- a/src/SMAPI.Installer/InteractiveInstaller.cs +++ b/src/SMAPI.Installer/InteractiveInstaller.cs @@ -56,6 +56,7 @@ private IEnumerable GetUninstallPaths(DirectoryInfo installDir, Director // obsolete files yield return GetInstallPath("libgdiplus.dylib"); // before 3.13 (macOS only) yield return GetInstallPath(Path.Combine("Mods", ".cache")); // 1.3-1.4 + yield return GetInstallPath(Path.Combine("Mods", "ErrorHandler")); // before 4.0 (no longer needed) yield return GetInstallPath(Path.Combine("Mods", "TrainerMod")); // before 2.0 (renamed to ConsoleCommands) yield return GetInstallPath("Mono.Cecil.Rocks.dll"); // 1.3-1.8 yield return GetInstallPath("StardewModdingAPI-settings.json"); // 1.0-1.4