mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-02 13:53:42 +01:00
Make ResourceTrees work with UseNoMods.
This commit is contained in:
parent
5abbd8b110
commit
f978b35b76
7 changed files with 24 additions and 26 deletions
|
|
@ -103,10 +103,6 @@ public class MetaCache(MetaFileManager manager, ModCollection collection)
|
|||
~MetaCache()
|
||||
=> Dispose();
|
||||
|
||||
/// <summary> Try to obtain a manipulated IMC file. </summary>
|
||||
public bool GetImcFile(Utf8GamePath path, [NotNullWhen(true)] out Meta.Files.ImcFile? file)
|
||||
=> Imc.GetFile(path.Path, out file);
|
||||
|
||||
internal EqdpEntry GetEqdpEntry(GenderRace race, bool accessory, PrimaryId primaryId)
|
||||
=> Eqdp.ApplyFullEntry(primaryId, race, accessory, Meta.Files.ExpandedEqdpFile.GetDefault(manager, race, accessory, primaryId));
|
||||
|
||||
|
|
|
|||
|
|
@ -43,15 +43,6 @@ public partial class ModCollection
|
|||
internal MetaCache? MetaCache
|
||||
=> _cache?.Meta;
|
||||
|
||||
public bool GetImcFile(Utf8GamePath path, [NotNullWhen(true)] out ImcFile? file)
|
||||
{
|
||||
if (_cache != null)
|
||||
return _cache.Meta.GetImcFile(path, out file);
|
||||
|
||||
file = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
internal IReadOnlyDictionary<Utf8GamePath, ModPath> ResolvedFiles
|
||||
=> _cache?.ResolvedFiles ?? new ConcurrentDictionary<Utf8GamePath, ModPath>();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue