summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-11-04 12:02:29 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-11-04 12:02:29 -0500
commite454de1e11fd76130f373362ea38e224b1fcfaef (patch)
tree7fc4018c20f6425fb587fe331f4e0358a993e8b7
parentdf7e814286641c27a64cf354c15d69ddcfae062d (diff)
downloadSMAPI-e454de1e11fd76130f373362ea38e224b1fcfaef.tar.gz
SMAPI-e454de1e11fd76130f373362ea38e224b1fcfaef.tar.bz2
SMAPI-e454de1e11fd76130f373362ea38e224b1fcfaef.zip
remove obsolete validation
Players can no longer launch SMAPI from the installer folder, since the files are hidden in a data file.
-rw-r--r--src/SMAPI/Program.cs11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/SMAPI/Program.cs b/src/SMAPI/Program.cs
index 05d7ff66..d6e0888b 100644
--- a/src/SMAPI/Program.cs
+++ b/src/SMAPI/Program.cs
@@ -80,16 +80,7 @@ namespace StardewModdingAPI
Platform platform = EnvironmentUtility.DetectPlatform();
string gameAssemblyName = platform == Platform.Windows ? "Stardew Valley" : "StardewValley";
if (Type.GetType($"StardewValley.Game1, {gameAssemblyName}", throwOnError: false) == null)
- {
- Program.PrintErrorAndExit(
- "Oops! SMAPI can't find the game. "
- + (Assembly.GetCallingAssembly().Location.Contains(Path.Combine("internal", "Windows")) || Assembly.GetCallingAssembly().Location.Contains(Path.Combine("internal", "Mono"))
- ? "It looks like you're running SMAPI from the download package, but you need to run the installed version instead. "
- : "Make sure you're running StardewModdingAPI.exe in your game folder. "
- )
- + "See the readme.txt file for details."
- );
- }
+ Program.PrintErrorAndExit("Oops! SMAPI can't find the game. Make sure you're running StardewModdingAPI.exe in your game folder. See the readme.txt file for details.");
}
/// <summary>Assert that the game version is within <see cref="Constants.MinimumGameVersion"/> and <see cref="Constants.MaximumGameVersion"/>.</summary>