Delete ignored assembly

This commit is contained in:
Sardelka
2022-06-22 09:46:36 +08:00
parent 8a42f7c626
commit 52a242c72a

View File

@ -67,7 +67,7 @@ namespace RageCoop.Core.Scripting
lock (LoadedResources)
{
if (!IsManagedAssembly(path)) { return false; }
if (ToIgnore.Contains(Path.GetFileName(path))) { return false; }
if (ToIgnore.Contains(Path.GetFileName(path))) { try { File.Delete(path); } catch { }; return false; }
Logger?.Debug($"Loading assembly {Path.GetFileName(path)} ...");