Unhack the hack
This commit is contained in:
@@ -342,8 +342,8 @@ namespace Torch.Managers
|
|||||||
if (!entry.Name.EndsWith(".dll", StringComparison.CurrentCultureIgnoreCase))
|
if (!entry.Name.EndsWith(".dll", StringComparison.CurrentCultureIgnoreCase))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (loaded.Any(a => entry.Name.Contains(a.GetName().Name)))
|
//if (loaded.Any(a => entry.Name.Contains(a.GetName().Name)))
|
||||||
continue;
|
// continue;
|
||||||
|
|
||||||
|
|
||||||
using (var stream = entry.Open())
|
using (var stream = entry.Open())
|
||||||
@@ -380,8 +380,8 @@ namespace Torch.Managers
|
|||||||
if (!file.EndsWith(".dll", StringComparison.CurrentCultureIgnoreCase))
|
if (!file.EndsWith(".dll", StringComparison.CurrentCultureIgnoreCase))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (loaded.Any(a => file.Contains(a.GetName().Name)))
|
//if (loaded.Any(a => file.Contains(a.GetName().Name)))
|
||||||
continue;
|
// continue;
|
||||||
|
|
||||||
using (var stream = File.OpenRead(file))
|
using (var stream = File.OpenRead(file))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user