From 3e48536ca5688ab285213553b2c4f0fe00de4758 Mon Sep 17 00:00:00 2001 From: Molly Date: Fri, 12 Dec 2025 13:13:46 +0200 Subject: [PATCH] Load plugins from subdirectories recursively Updated the plugin loader to search for DLL files in all subdirectories, not just the top-level directory. This allows plugins to be organized in nested folders. --- LabApi/Loader/PluginLoader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LabApi/Loader/PluginLoader.cs b/LabApi/Loader/PluginLoader.cs index 0e86b10f..29755297 100644 --- a/LabApi/Loader/PluginLoader.cs +++ b/LabApi/Loader/PluginLoader.cs @@ -157,7 +157,7 @@ public static void LoadAllPlugins() if (Directory.Exists(fullPath)) { - LoadPlugins(new DirectoryInfo(fullPath).GetFiles(DllSearchPattern)); + LoadPlugins(new DirectoryInfo(fullPath).GetFiles(DllSearchPattern, SearchOption.AllDirectories)); } }