mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Optimize LoadAssemblies()
We can be smart about it and avoid loading the same assemblies twice
This commit is contained in:
@@ -218,7 +218,7 @@ namespace ArchiSteamFarm.Plugins {
|
||||
|
||||
string customPluginsPath = Path.Combine(Directory.GetCurrentDirectory(), SharedInfo.PluginsDirectory);
|
||||
|
||||
if (Directory.Exists(customPluginsPath)) {
|
||||
if ((pluginsPath != customPluginsPath) && Directory.Exists(customPluginsPath)) {
|
||||
HashSet<Assembly>? loadedAssemblies = LoadAssembliesFrom(customPluginsPath);
|
||||
|
||||
if (loadedAssemblies?.Count > 0) {
|
||||
|
||||
Reference in New Issue
Block a user