summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/SCore.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-08-29 23:01:47 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-09-01 19:36:43 -0400
commit6edcfb1358e470a636a9e97780e05f2a0dcb6752 (patch)
tree759fb18b436811349865974ed396309bb5f2fc52 /src/SMAPI/Framework/SCore.cs
parentec5fbb06113b29342e6d4b213144f4dc3e358b03 (diff)
downloadSMAPI-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.cs2
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()}";