minor refactor to CsScriptLoader plus fixed source category regex not working as expected with some paths

This commit is contained in:
Evil Factory
2022-07-05 17:47:52 -03:00
parent 4b917625c0
commit e5d4a38fd7
2 changed files with 54 additions and 55 deletions
@@ -444,7 +444,7 @@ namespace Barotrauma
DebugConsole.AddWarning("Cs package active! Cs mods are NOT sandboxed, use it at your own risk!");
}
CsScriptLoader = new CsScriptLoader(this);
CsScriptLoader = new CsScriptLoader();
CsScriptLoader.SearchFolders();
if (CsScriptLoader.HasSources)
{