Copy native DLLs if newer
This commit is contained in:
@@ -35,7 +35,6 @@ namespace Torch.Server
|
||||
var badDlls = new[]
|
||||
{
|
||||
"System.Security.Principal.Windows.dll",
|
||||
"steam_api64.dll"
|
||||
};
|
||||
|
||||
try
|
||||
@@ -46,9 +45,11 @@ namespace Torch.Server
|
||||
File.Delete(file);
|
||||
}
|
||||
}
|
||||
catch
|
||||
catch (Exception e)
|
||||
{
|
||||
LogManager.GetCurrentClassLogger().Error($"Error updating. Please delete the following files from the Torch root folder manually:\r\n{string.Join("\r\n", badDlls)}");
|
||||
var log = LogManager.GetCurrentClassLogger();
|
||||
log.Error($"Error updating. Please delete the following files from the Torch root folder manually:\r\n{string.Join("\r\n", badDlls)}");
|
||||
log.Error(e);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user