startup folder and config folder beeing identical is no longer a supported scenaria

This commit is contained in:
Frank Skare
2019-07-29 22:48:08 +02:00
parent 9c6c0f3506
commit 0f5146e58c
4 changed files with 13 additions and 9 deletions

View File

@@ -28,7 +28,7 @@ namespace ScriptingExtension // the file name of extensions must end with 'Exten
if (Directory.Exists(mp.ConfigFolder + "scripts"))
scriptFiles.AddRange(Directory.GetFiles(mp.ConfigFolder + "scripts", "*.cs"));
if (Directory.Exists(PathHelp.StartupPath + "scripts") && mp.ConfigFolder != PathHelp.StartupPath)
if (Directory.Exists(PathHelp.StartupPath + "scripts"))
foreach (string file in Directory.GetFiles(PathHelp.StartupPath + "scripts", "*.cs"))
App.UnknownModule(file);