mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-03 14:23:43 +01:00
Use specific counter for Imc.
This commit is contained in:
parent
be729afd4b
commit
d7a8c9415b
3 changed files with 5 additions and 1 deletions
|
|
@ -68,6 +68,7 @@ public sealed class ImcCache(MetaFileManager manager, ModCollection collection)
|
|||
|
||||
protected override void ApplyModInternal(ImcIdentifier identifier, ImcEntry entry)
|
||||
{
|
||||
++Collection.ImcChangeCounter;
|
||||
if (Manager.CharacterUtility.Ready)
|
||||
ApplyFile(identifier, entry);
|
||||
}
|
||||
|
|
@ -102,6 +103,7 @@ public sealed class ImcCache(MetaFileManager manager, ModCollection collection)
|
|||
|
||||
protected override void RevertModInternal(ImcIdentifier identifier)
|
||||
{
|
||||
++Collection.ImcChangeCounter;
|
||||
var path = identifier.GamePath();
|
||||
if (!_imcFiles.TryGetValue(path, out var pair))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue