diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-08-03 19:11:39 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-08-03 19:11:39 -0400 |
commit | 2e442bf2ee9f7d73c935dfed95c996581a17e06f (patch) | |
tree | 9abcc5fc983002e73f7e82585f1aff12c62c495b /src/SMAPI/Framework/ModLoading/AssemblyLoader.cs | |
parent | 5b31be76dd90711ff475341de8dfdb6e1f50b98a (diff) | |
parent | 1bb51b2c41bf5acdffb8e25c37187e9bdf9d3dd4 (diff) | |
download | SMAPI-2e442bf2ee9f7d73c935dfed95c996581a17e06f.tar.gz SMAPI-2e442bf2ee9f7d73c935dfed95c996581a17e06f.tar.bz2 SMAPI-2e442bf2ee9f7d73c935dfed95c996581a17e06f.zip |
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Framework/ModLoading/AssemblyLoader.cs')
-rw-r--r-- | src/SMAPI/Framework/ModLoading/AssemblyLoader.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs b/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs index 3606eb66..2b71038a 100644 --- a/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs +++ b/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs @@ -61,6 +61,7 @@ namespace StardewModdingAPI.Framework.ModLoading this.AssemblyDefinitionResolver = this.TrackForDisposal(new AssemblyDefinitionResolver()); this.AssemblyDefinitionResolver.AddSearchDirectory(Constants.ExecutionPath); this.AssemblyDefinitionResolver.AddSearchDirectory(Constants.InternalFilesPath); + this.AssemblyDefinitionResolver.Add(AssemblyDefinition.ReadAssembly(typeof(SGame).Assembly.Location)); // for some reason Mono.Cecil can't resolve SMAPI in very specific cases involving unofficial 64-bit Stardew Valley when launched through Steam (for some players only) // generate type => assembly lookup for types which should be rewritten this.TypeAssemblies = new Dictionary<string, Assembly>(); |