mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-11 04:57:22 +01:00
why did this even crash to begin with
This commit is contained in:
parent
b7b79e6e1d
commit
79f5065128
1 changed files with 8 additions and 3 deletions
|
|
@ -88,14 +88,19 @@ 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);
|
||||
}
|
||||
|
||||
// force reload semi transient resources
|
||||
_semiTransientResources = null;
|
||||
_configurationService.Save();
|
||||
if (removedPaths)
|
||||
{
|
||||
// force reload semi transient resources
|
||||
_semiTransientResources = null;
|
||||
_configurationService.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue