ResourceTree: WIP - Path resolution

This commit is contained in:
Exter-N 2023-11-04 18:30:36 +01:00
parent 2852562a03
commit fd163f8f66
13 changed files with 452 additions and 142 deletions

View file

@ -65,6 +65,13 @@ public unsafe class ImcFile : MetaBaseFile
return ptr == null ? new ImcEntry() : *ptr;
}
public ImcEntry GetEntry(int partIdx, Variant variantIdx, out bool exists)
{
var ptr = VariantPtr(Data, partIdx, variantIdx);
exists = ptr != null;
return exists ? *ptr : new ImcEntry();
}
public static int PartIndex(EquipSlot slot)
=> slot switch
{