why did this even crash to begin with
This commit is contained in:
@@ -88,16 +88,21 @@ public sealed class TransientResourceManager : DisposableMediatorSubscriberBase
|
||||
return;
|
||||
}
|
||||
|
||||
bool removedPaths = false;
|
||||
foreach (var replacement in fileReplacement.Where(p => !p.HasFileReplacement).SelectMany(p => p.GamePaths).ToList())
|
||||
{
|
||||
removedPaths = true;
|
||||
PlayerConfig.RemovePath(replacement);
|
||||
}
|
||||
|
||||
if (removedPaths)
|
||||
{
|
||||
// force reload semi transient resources
|
||||
_semiTransientResources = null;
|
||||
_configurationService.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public HashSet<string> GetSemiTransientResources(ObjectKind objectKind)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user