mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-18 14:44:29 +01:00
Add ResolvePlayerPaths.
This commit is contained in:
parent
58c74e839c
commit
fe561f39c2
6 changed files with 126 additions and 37 deletions
|
|
@ -4,6 +4,7 @@ using Penumbra.Meta.Manager;
|
|||
using Penumbra.Mods;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Threading;
|
||||
using Penumbra.Interop;
|
||||
|
|
@ -68,6 +69,9 @@ public partial class ModCollection
|
|||
public IEnumerable< Utf8GamePath > ReverseResolvePath( FullPath path )
|
||||
=> _cache?.ReverseResolvePath( path ) ?? Array.Empty< Utf8GamePath >();
|
||||
|
||||
public HashSet< Utf8GamePath >[] ReverseResolvePaths( string[] paths )
|
||||
=> _cache?.ReverseResolvePaths( paths ) ?? paths.Select( _ => new HashSet< Utf8GamePath >() ).ToArray();
|
||||
|
||||
public FullPath? ResolvePath( Utf8GamePath path )
|
||||
=> _cache?.ResolvePath( path );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue