From 6e4d99d742746c0b2afa75e032caeafa59875c7a Mon Sep 17 00:00:00 2001 From: yeziuku Date: Sat, 21 Oct 2023 15:41:52 +0800 Subject: [PATCH] Add check 'plugins' directory does exists --- Service/PluginManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Service/PluginManager.cs b/Service/PluginManager.cs index 9cfd8e7..8d15bef 100644 --- a/Service/PluginManager.cs +++ b/Service/PluginManager.cs @@ -12,6 +12,8 @@ namespace Milimoe.FunGame.Core.Service /// internal static Dictionary LoadPlugins(Dictionary plugins, params object[] objs) { + if (!Directory.Exists("plugins")) return plugins; + string[] dlls = Directory.GetFiles("plugins", "*.dll"); foreach (string dll in dlls)