mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 20:54:16 +01:00
Extract collection counters.
This commit is contained in:
parent
7a2691b942
commit
fbbfe5e00d
10 changed files with 48 additions and 32 deletions
|
|
@ -187,7 +187,7 @@ public class CollectionCacheManager : IDisposable, IService
|
|||
foreach (var mod in _modStorage)
|
||||
cache.AddModSync(mod, false);
|
||||
|
||||
collection.IncrementCounter();
|
||||
collection.Counters.IncrementChange();
|
||||
|
||||
MetaFileManager.ApplyDefaultFiles(collection);
|
||||
ResolvedFileChanged.Invoke(collection, ResolvedFileChanged.Type.FullRecomputeFinished, Utf8GamePath.Empty, FullPath.Empty,
|
||||
|
|
@ -297,7 +297,7 @@ public class CollectionCacheManager : IDisposable, IService
|
|||
private void IncrementCounters()
|
||||
{
|
||||
foreach (var collection in _storage.Where(c => c.HasCache))
|
||||
collection.IncrementCounter();
|
||||
collection.Counters.IncrementChange();
|
||||
MetaFileManager.CharacterUtility.LoadingFinished -= IncrementCounters;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue