mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Fuck
This commit is contained in:
parent
c911977b5e
commit
4b1443ec93
2 changed files with 5 additions and 4 deletions
|
|
@ -29,6 +29,8 @@ public class CollectionCache : IDisposable
|
||||||
public readonly MetaCache Meta;
|
public readonly MetaCache Meta;
|
||||||
public readonly Dictionary<IMod, SingleArray<ModConflicts>> _conflicts = new();
|
public readonly Dictionary<IMod, SingleArray<ModConflicts>> _conflicts = new();
|
||||||
|
|
||||||
|
public bool Calculating;
|
||||||
|
|
||||||
public IEnumerable<SingleArray<ModConflicts>> AllConflicts
|
public IEnumerable<SingleArray<ModConflicts>> AllConflicts
|
||||||
=> _conflicts.Values;
|
=> _conflicts.Values;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ public class CollectionCacheManager : IDisposable
|
||||||
internal readonly MetaFileManager MetaFileManager;
|
internal readonly MetaFileManager MetaFileManager;
|
||||||
|
|
||||||
public int Count { get; private set; }
|
public int Count { get; private set; }
|
||||||
public bool Calculating { get; private set; }
|
|
||||||
|
|
||||||
public IEnumerable<ModCollection> Active
|
public IEnumerable<ModCollection> Active
|
||||||
=> _storage.Where(c => c.HasCache);
|
=> _storage.Where(c => c.HasCache);
|
||||||
|
|
@ -117,10 +116,10 @@ public class CollectionCacheManager : IDisposable
|
||||||
private void FullRecalculation(ModCollection collection)
|
private void FullRecalculation(ModCollection collection)
|
||||||
{
|
{
|
||||||
var cache = collection._cache;
|
var cache = collection._cache;
|
||||||
if (cache == null || Calculating)
|
if (cache == null || cache.Calculating)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Calculating = true;
|
cache.Calculating = true;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
cache.ResolvedFiles.Clear();
|
cache.ResolvedFiles.Clear();
|
||||||
|
|
@ -145,7 +144,7 @@ public class CollectionCacheManager : IDisposable
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
Calculating = false;
|
cache.Calculating = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue