mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-26 10:29:20 +01:00
Maybe fix the race condition and add more logging.
This commit is contained in:
parent
f8d1fcf4e2
commit
02fe5a4fb3
6 changed files with 96 additions and 53 deletions
|
|
@ -17,10 +17,18 @@ public readonly struct ImcCache : IDisposable
|
|||
public ImcCache()
|
||||
{ }
|
||||
|
||||
public void SetFiles(ModCollection collection)
|
||||
public void SetFiles(ModCollection collection, bool fromFullCompute)
|
||||
{
|
||||
foreach( var path in _imcFiles.Keys )
|
||||
collection._cache!.ForceFile( path, CreateImcPath( collection, path ) );
|
||||
if (fromFullCompute)
|
||||
{
|
||||
foreach (var path in _imcFiles.Keys)
|
||||
collection._cache!.ForceFileSync(path, CreateImcPath(collection, path));
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (var path in _imcFiles.Keys)
|
||||
collection._cache!.ForceFile(path, CreateImcPath(collection, path));
|
||||
}
|
||||
}
|
||||
|
||||
public void Reset(ModCollection collection)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue