mirror of
https://github.com/Caraxi/mare.client.git
synced 2026-02-19 12:37:41 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool removedPaths = false;
|
||||||
foreach (var replacement in fileReplacement.Where(p => !p.HasFileReplacement).SelectMany(p => p.GamePaths).ToList())
|
foreach (var replacement in fileReplacement.Where(p => !p.HasFileReplacement).SelectMany(p => p.GamePaths).ToList())
|
||||||
{
|
{
|
||||||
|
removedPaths = true;
|
||||||
PlayerConfig.RemovePath(replacement);
|
PlayerConfig.RemovePath(replacement);
|
||||||
}
|
}
|
||||||
|
|
||||||
// force reload semi transient resources
|
if (removedPaths)
|
||||||
_semiTransientResources = null;
|
{
|
||||||
_configurationService.Save();
|
// force reload semi transient resources
|
||||||
|
_semiTransientResources = null;
|
||||||
|
_configurationService.Save();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue