Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2b1a5d4c6e | ||
![]() |
2860dda41b |
@@ -68,7 +68,14 @@ namespace Torch.Managers
|
|||||||
if (File.Exists(tempFilePath))
|
if (File.Exists(tempFilePath))
|
||||||
File.Delete(tempFilePath);
|
File.Delete(tempFilePath);
|
||||||
|
|
||||||
File.Move(source, tempFilePath);
|
try
|
||||||
|
{
|
||||||
|
File.Move(source, tempFilePath);
|
||||||
|
}
|
||||||
|
catch (UnauthorizedAccessException)
|
||||||
|
{
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -109,7 +109,14 @@ namespace Torch.Managers
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
_fsManager.SoftDelete(extractPath, file.FullName);
|
_fsManager.SoftDelete(extractPath, file.FullName);
|
||||||
file.ExtractToFile(targetFile, true);
|
try
|
||||||
|
{
|
||||||
|
file.ExtractToFile(targetFile, true);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
_log.Warn(e, "unable to extract {0}", targetFile);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -60,6 +60,7 @@ namespace Torch.Patches
|
|||||||
typeof(System.Security.Policy.Evidence).Assembly.Location,
|
typeof(System.Security.Policy.Evidence).Assembly.Location,
|
||||||
typeof(ProtoBuf.Meta.RuntimeTypeModel).Assembly.Location,
|
typeof(ProtoBuf.Meta.RuntimeTypeModel).Assembly.Location,
|
||||||
typeof(ProtoContractAttribute).Assembly.Location,
|
typeof(ProtoContractAttribute).Assembly.Location,
|
||||||
|
Path.Combine(baseDir, "System.Xml.ReaderWriter.dll"),
|
||||||
Path.Combine(baseDir, "netstandard.dll"),
|
Path.Combine(baseDir, "netstandard.dll"),
|
||||||
Path.Combine(baseDir, "System.Runtime.dll"),
|
Path.Combine(baseDir, "System.Runtime.dll"),
|
||||||
Path.Combine(MyFileSystem.ExePath, "Sandbox.Game.dll"),
|
Path.Combine(MyFileSystem.ExePath, "Sandbox.Game.dll"),
|
||||||
|
Reference in New Issue
Block a user