Use specific counter for Imc.

This commit is contained in:
Ottermandias 2024-06-17 23:11:42 +02:00
parent be729afd4b
commit d7a8c9415b
3 changed files with 5 additions and 1 deletions

View file

@ -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;