Some fixes.

This commit is contained in:
Ottermandias 2024-06-15 14:46:42 +02:00
parent a61a96f1ef
commit a7b90639c6
2 changed files with 12 additions and 5 deletions

View file

@ -1,4 +1,3 @@
using FFXIVClientStructs.FFXIV.Client.Graphics.Render;
using OtterGui;
using Penumbra.GameData.Enums;
using Penumbra.GameData.Structs;
@ -28,7 +27,10 @@ public sealed class EqdpCache(MetaFileManager manager, ModCollection collection)
}
public override void ResetFiles()
=> Manager.SetFile(null, MetaIndex.Eqp);
{
foreach (var t in CharacterUtilityData.EqdpIndices)
Manager.SetFile(null, t);
}
protected override void IncorporateChangesInternal()
{
@ -90,7 +92,7 @@ public sealed class EqdpCache(MetaFileManager manager, ModCollection collection)
if ((origEntry & mask) == entry)
return false;
file[identifier.SetId] = (entry & ~mask) | origEntry;
file[identifier.SetId] = (origEntry & ~mask) | entry;
return true;
}

View file

@ -55,7 +55,12 @@ public sealed class EstCache(MetaFileManager manager, ModCollection collection)
}
public override void ResetFiles()
=> Manager.SetFile(null, MetaIndex.Eqp);
{
Manager.SetFile(null, MetaIndex.FaceEst);
Manager.SetFile(null, MetaIndex.HairEst);
Manager.SetFile(null, MetaIndex.BodyEst);
Manager.SetFile(null, MetaIndex.HeadEst);
}
protected override void IncorporateChangesInternal()
{