summaryrefslogtreecommitdiff
path: root/src/SMAPI/Constants.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-07-08 19:03:59 -0400
committerGitHub <noreply@github.com>2022-07-08 19:03:59 -0400
commit795e8080635794eccd010b81110665b76535622e (patch)
treefbcd1c2472b08af686d18506c5ba38784a12b2d2 /src/SMAPI/Constants.cs
parent1b25710cf26ccc46485c9475e33980a5490b9561 (diff)
parent1b3a1a48d0d0d7e2423db54f3266cabd80a5a9b3 (diff)
downloadSMAPI-795e8080635794eccd010b81110665b76535622e.tar.gz
SMAPI-795e8080635794eccd010b81110665b76535622e.tar.bz2
SMAPI-795e8080635794eccd010b81110665b76535622e.zip
Merge pull request #852 from TehPers/TehPers/search-local-deps
Search assembly directory for dependencies
Diffstat (limited to 'src/SMAPI/Constants.cs')
-rw-r--r--src/SMAPI/Constants.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI/Constants.cs b/src/SMAPI/Constants.cs
index d733e61e..c59af612 100644
--- a/src/SMAPI/Constants.cs
+++ b/src/SMAPI/Constants.cs
@@ -244,8 +244,8 @@ namespace StardewModdingAPI
internal static void ConfigureAssemblyResolver(AssemblyDefinitionResolver resolver)
{
// add search paths
- resolver.AddSearchDirectory(Constants.GamePath);
- resolver.AddSearchDirectory(Constants.InternalFilesPath);
+ resolver.TryAddSearchDirectory(Constants.GamePath);
+ resolver.TryAddSearchDirectory(Constants.InternalFilesPath);
// add SMAPI explicitly
// Normally this would be handled automatically by the search paths, but for some reason there's a specific