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

Commit

Permalink
fix: change the order of loading file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed May 15, 2023
1 parent 5817d58 commit 5884bc3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions RotationSolver/Updaters/RotationUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,13 @@ private static Assembly LoadOne(string filePath)

private static void LoadRotationsFromLocal(string relayFolder)
{
var directories = new string[] {
var directories = Service.Config.OtherLibs
#if DEBUG
relayFolder
.Append(relayFolder)
#else
relayFolder
.Append(relayFolder)
#endif
}
.Union(Service.Config.OtherLibs
.Where(Directory.Exists));
.Where(Directory.Exists);

var assemblies = from dir in directories
where Directory.Exists(dir)
Expand Down

0 comments on commit 5884bc3

Please sign in to comment.