diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-07-08 19:02:33 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-07-08 19:02:33 -0400 |
commit | 1b3a1a48d0d0d7e2423db54f3266cabd80a5a9b3 (patch) | |
tree | 0ab2be11bc7ad204230d69fa93ab83cfe21b905d /src/SMAPI/Constants.cs | |
parent | 0c0f7898f4ff3b2e4afdbdc438674b30be7dacc7 (diff) | |
download | SMAPI-1b3a1a48d0d0d7e2423db54f3266cabd80a5a9b3.tar.gz SMAPI-1b3a1a48d0d0d7e2423db54f3266cabd80a5a9b3.tar.bz2 SMAPI-1b3a1a48d0d0d7e2423db54f3266cabd80a5a9b3.zip |
refactor assembly resolver to avoid repeatedly copying search directory list
Diffstat (limited to 'src/SMAPI/Constants.cs')
-rw-r--r-- | src/SMAPI/Constants.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI/Constants.cs b/src/SMAPI/Constants.cs index 33468717..442f2ec8 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 |