Delete ignored assembly
This commit is contained in:
@ -67,7 +67,7 @@ namespace RageCoop.Core.Scripting
|
|||||||
lock (LoadedResources)
|
lock (LoadedResources)
|
||||||
{
|
{
|
||||||
if (!IsManagedAssembly(path)) { return false; }
|
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)} ...");
|
Logger?.Debug($"Loading assembly {Path.GetFileName(path)} ...");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user