diff options
| author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-09-01 19:56:33 -0400 |
|---|---|---|
| committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-09-01 19:56:33 -0400 |
| commit | 9153ebf5e910588ca1df519cd643fc195626a6bb (patch) | |
| tree | a9acece75f6eebad02f366ba76c015c6402469bc /src/SMAPI/Framework/SCore.cs | |
| parent | 9316fe303827cb31f38f4a5bb068f8fa0190ac5e (diff) | |
| parent | 789b62bcd6af0f87ab8d71ff5190fdb9163d9bef (diff) | |
| download | SMAPI-9153ebf5e910588ca1df519cd643fc195626a6bb.tar.gz SMAPI-9153ebf5e910588ca1df519cd643fc195626a6bb.tar.bz2 SMAPI-9153ebf5e910588ca1df519cd643fc195626a6bb.zip | |
Merge branch 'rewrite-x86-flag' into develop
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()}"; |
