Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: add a directory existing check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Mar 19, 2023
1 parent 2f5c111 commit 20bdb07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RotationSolver/Updaters/RotationUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static void GetAllCustomRotations()
.Select(s => s.Trim()).Append(Path.GetDirectoryName(Assembly.GetAssembly(typeof(ICustomRotation)).Location));

var assemblies = from dir in directories
where Directory.Exists(dir)
from l in Directory.GetFiles(dir, "*.dll")
where !_locs.Any(l.Contains)
select RotationLoadContext.LoadFrom(l);
Expand Down

0 comments on commit 20bdb07

Please sign in to comment.