summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-08-18 23:55:43 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-11-28 00:01:46 -0500
commit89c98223ebf6bfeee5ef587ab748995e09dd4310 (patch)
treecda58811dd54ceeca59c22da7e3a9da24ddb01bd /src/SMAPI.Installer
parentb349e956c6bb4608b4e158282700bf39e0072817 (diff)
downloadSMAPI-89c98223ebf6bfeee5ef587ab748995e09dd4310.tar.gz
SMAPI-89c98223ebf6bfeee5ef587ab748995e09dd4310.tar.bz2
SMAPI-89c98223ebf6bfeee5ef587ab748995e09dd4310.zip
remove path-too-long exception handling
The path length limit no longer applies in .NET 5.
Diffstat (limited to 'src/SMAPI.Installer')
-rw-r--r--src/SMAPI.Installer/InteractiveInstaller.cs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/SMAPI.Installer/InteractiveInstaller.cs b/src/SMAPI.Installer/InteractiveInstaller.cs
index 896017d3..714a959b 100644
--- a/src/SMAPI.Installer/InteractiveInstaller.cs
+++ b/src/SMAPI.Installer/InteractiveInstaller.cs
@@ -259,17 +259,6 @@ namespace StardewModdingApi.Installer
Console.ReadLine();
return;
}
-
- // game folder doesn't contain paths beyond the max limit
- {
- string[] tooLongPaths = PathUtilities.GetTooLongPaths(Path.Combine(paths.GamePath, "Mods")).ToArray();
- if (tooLongPaths.Any())
- {
- this.PrintError($"SMAPI can't install to the detected game folder, because some of its files exceed the maximum {context.Platform} path length.\nIf you need help fixing this error, see https://smapi.io/help\n\nAffected paths:\n {string.Join("\n ", tooLongPaths)}");
- Console.ReadLine();
- return;
- }
- }
Console.Clear();