Maybe fix the race condition and add more logging.

This commit is contained in:
Ottermandias 2023-05-29 18:48:46 +02:00
parent f8d1fcf4e2
commit 02fe5a4fb3
6 changed files with 96 additions and 53 deletions

View file

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