diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-08-29 23:01:47 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-09-01 19:36:43 -0400 |
commit | 6edcfb1358e470a636a9e97780e05f2a0dcb6752 (patch) | |
tree | 759fb18b436811349865974ed396309bb5f2fc52 /src/SMAPI/Framework/SCore.cs | |
parent | ec5fbb06113b29342e6d4b213144f4dc3e358b03 (diff) | |
download | SMAPI-6edcfb1358e470a636a9e97780e05f2a0dcb6752.tar.gz SMAPI-6edcfb1358e470a636a9e97780e05f2a0dcb6752.tar.bz2 SMAPI-6edcfb1358e470a636a9e97780e05f2a0dcb6752.zip |
tweak new code
Diffstat (limited to 'src/SMAPI/Framework/SCore.cs')
-rw-r--r-- | src/SMAPI/Framework/SCore.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs index c1aa3721..61fb77b2 100644 --- a/src/SMAPI/Framework/SCore.cs +++ b/src/SMAPI/Framework/SCore.cs @@ -1732,7 +1732,7 @@ namespace StardewModdingAPI.Framework { errorReasonPhrase = "its DLL couldn't be loaded."; #if SMAPI_FOR_WINDOWS_64BIT_HACK - if (!EnvironmentUtility.Is64BitAssembly(assemblyPath)) + if (ex is BadImageFormatException && !EnvironmentUtility.Is64BitAssembly(assemblyPath)) errorReasonPhrase = "it needs to be updated for 64-bit mode."; #endif errorDetails = $"Error: {ex.GetLogSummary()}"; |