fix some issues in reverse resolving paths I guess

This commit is contained in:
Stanley Dimant
2022-07-05 21:53:39 +02:00
parent 3b5afb9a60
commit 11cc190528
3 changed files with 6 additions and 2 deletions

View File

@@ -190,6 +190,10 @@ namespace MareSynchronos.Managers
{
if (!CheckPenumbraApi()) return new[] { path };
var resolvedPaths = _penumbraReverseResolvePath!.InvokeFunc(path, characterName);
if (resolvedPaths.Length == 0)
{
resolvedPaths = new[] { path };
}
Logger.Verbose("Reverse Resolved " + path + "=>" + string.Join(", ", resolvedPaths));
return resolvedPaths;
}