diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-07-01 15:15:33 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-07-01 15:15:33 -0400 |
commit | 5357de4219c60fb44eb204e4f6c06e062a41d964 (patch) | |
tree | 29493b5f7ef5da41a1ec84914bc790da1cad4ba2 /src | |
parent | e548a4ea9bf24c28ebc024e12af73cd14b76f05f (diff) | |
download | SMAPI-5357de4219c60fb44eb204e4f6c06e062a41d964.tar.gz SMAPI-5357de4219c60fb44eb204e4f6c06e062a41d964.tar.bz2 SMAPI-5357de4219c60fb44eb204e4f6c06e062a41d964.zip |
add game path to assembly definition resolution search paths for rare edge cases where it's not added automatically
Diffstat (limited to 'src')
-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 8f5a8316..2f6130de 100644 --- a/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs +++ b/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs @@ -44,6 +44,7 @@ namespace StardewModdingAPI.Framework.ModLoading this.Monitor = monitor; this.AssemblyMap = this.TrackForDisposal(Constants.GetAssemblyMap(targetPlatform)); this.AssemblyDefinitionResolver = this.TrackForDisposal(new AssemblyDefinitionResolver()); + this.AssemblyDefinitionResolver.AddSearchDirectory(Constants.ExecutionPath); // generate type => assembly lookup for types which should be rewritten this.TypeAssemblies = new Dictionary<string, Assembly>(); |