This commit is contained in:
John Gross
2019-06-06 18:03:58 -07:00
parent 3e5b29c84d
commit 97f380fb7b
3 changed files with 12 additions and 5 deletions

View File

@@ -31,11 +31,17 @@ namespace Torch.Server
Directory.SetCurrentDirectory(workingDir);
//HACK for block skins update
foreach (var f in Directory.EnumerateFiles(workingDir, "System.*", SearchOption.TopDirectoryOnly))
var badDlls = new[]
{
File.Delete(f);
}
"System.Security.Principal.Windows.dll"
};
foreach (var file in badDlls)
{
if (File.Exists(file))
File.Delete(file);
}
if (!TorchLauncher.IsTorchWrapped())
{
TorchLauncher.Launch(Assembly.GetEntryAssembly().FullName, args, binDir);