prevent access error if you do workshop cl install but its already installed

This commit is contained in:
Evil Factory
2022-05-07 12:42:53 -03:00
parent c101711512
commit 789d728f7a

View File

@@ -1302,9 +1302,13 @@ namespace Barotrauma
File.Move("System.Reflection.Metadata.dll", "System.Reflection.Metadata.dll.old", true);
File.Move("System.Collections.Immutable.dll", "System.Collections.Immutable.dll.old", true);
File.Move("System.Runtime.CompilerServices.Unsafe.dll", "System.Runtime.CompilerServices.Unsafe.dll.old", true);
foreach (string file in filesToCopy)
{
if (File.Exists(file))
{
File.Move(file, file + ".todelete", true);
}
File.Copy(Path.Combine(path, "Binary", file), file, true);
}