Fix #4: Handle non-existent directories in install config

This commit is contained in:
Jarrod Doyle 2024-12-11 17:13:47 +00:00
parent a6e4e85470
commit 7ae7407c2b
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 6 additions and 0 deletions

View File

@ -155,6 +155,12 @@ public class ResourcePathManager
foreach (var resPath in resPaths.Split('+'))
{
var dir = Path.Join(installPath, ConvertSeparator(resPath));
if (!Directory.Exists(dir))
{
continue;
}
// TODO: This just finds the *first* respath that has these files... They should be merged
foreach (var path in Directory.GetFiles(dir))
{
var name = Path.GetFileName(path).ToLower();