UDBScript: directories are now expanded by default

This commit is contained in:
biwa 2021-11-28 14:50:49 +01:00
parent 5eb438e3ba
commit 843058c76c

View file

@ -380,7 +380,7 @@ namespace CodeImp.DoomBuilder.UDBScript
private ScriptDirectoryStructure LoadScriptDirectoryStructure(string path) private ScriptDirectoryStructure LoadScriptDirectoryStructure(string path)
{ {
string hash = SHA256Hash.Get(path); string hash = SHA256Hash.Get(path);
bool expanded = General.Settings.ReadPluginSetting("directoryexpand." + hash, false); bool expanded = General.Settings.ReadPluginSetting("directoryexpand." + hash, true);
string name = path.TrimEnd(Path.DirectorySeparatorChar).Split(Path.DirectorySeparatorChar).Last(); string name = path.TrimEnd(Path.DirectorySeparatorChar).Split(Path.DirectorySeparatorChar).Last();
ScriptDirectoryStructure sds = new ScriptDirectoryStructure(name, expanded, hash); ScriptDirectoryStructure sds = new ScriptDirectoryStructure(name, expanded, hash);