summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-06-20 18:02:41 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-06-20 18:02:41 -0400
commitc91fbc82f8803c400880a56fc1571abd76411fdf (patch)
tree2826a33c2642ec10509707392c24ed17da1012b2 /src/SMAPI.Installer
parentdab1ef6acc243726247cee57877c3b3100106522 (diff)
downloadSMAPI-c91fbc82f8803c400880a56fc1571abd76411fdf.tar.gz
SMAPI-c91fbc82f8803c400880a56fc1571abd76411fdf.tar.bz2
SMAPI-c91fbc82f8803c400880a56fc1571abd76411fdf.zip
deprecate support for updating ancient versions of SMAPI
Diffstat (limited to 'src/SMAPI.Installer')
-rw-r--r--src/SMAPI.Installer/InteractiveInstaller.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/SMAPI.Installer/InteractiveInstaller.cs b/src/SMAPI.Installer/InteractiveInstaller.cs
index 19cefd32..5a6aa747 100644
--- a/src/SMAPI.Installer/InteractiveInstaller.cs
+++ b/src/SMAPI.Installer/InteractiveInstaller.cs
@@ -54,6 +54,7 @@ namespace StardewModdingApi.Installer
yield return GetInstallPath("smapi-internal");
yield return GetInstallPath("steam_appid.txt");
+#if SMAPI_DEPRECATED
// obsolete
yield return GetInstallPath("libgdiplus.dylib"); // before 3.13 (macOS only)
yield return GetInstallPath(Path.Combine("Mods", ".cache")); // 1.3-1.4
@@ -82,6 +83,7 @@ namespace StardewModdingApi.Installer
foreach (DirectoryInfo modDir in modsDir.EnumerateDirectories())
yield return Path.Combine(modDir.FullName, ".cache"); // 1.4–1.7
}
+#endif
yield return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley", "ErrorLogs"); // remove old log files
}
@@ -477,8 +479,10 @@ namespace StardewModdingApi.Installer
File.WriteAllText(paths.ApiConfigPath, text);
}
+#if SMAPI_DEPRECATED
// remove obsolete appdata mods
this.InteractivelyRemoveAppDataMods(paths.ModsDir, bundledModsDir);
+#endif
}
}
Console.WriteLine();
@@ -805,6 +809,7 @@ namespace StardewModdingApi.Installer
}
}
+#if SMAPI_DEPRECATED
/// <summary>Interactively move mods out of the app data directory.</summary>
/// <param name="properModsDir">The directory which should contain all mods.</param>
/// <param name="packagedModsDir">The installer directory containing packaged mods.</param>
@@ -887,6 +892,7 @@ namespace StardewModdingApi.Installer
directory.Delete(recursive: true);
}
}
+#endif
/// <summary>Get whether a file or folder should be copied from the installer files.</summary>
/// <param name="entry">The file or folder info.</param>