From 5884bc30ffe5b8cfa1448c1535eaf2403ba26ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Mon, 15 May 2023 10:26:40 +0800 Subject: [PATCH] fix: change the order of loading file. --- RotationSolver/Updaters/RotationUpdater.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/RotationSolver/Updaters/RotationUpdater.cs b/RotationSolver/Updaters/RotationUpdater.cs index 4f9659ebc..f1fba3479 100644 --- a/RotationSolver/Updaters/RotationUpdater.cs +++ b/RotationSolver/Updaters/RotationUpdater.cs @@ -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)