Skip to content

Commit

Permalink
Automatically backup original files
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyw15 committed May 4, 2024
1 parent b97b275 commit 3836019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AssemblyPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static void ReplaceFile(string cevioInstallPath)
var targetPath = Path.Combine(cevioInstallPath, TARGET_FILE);
var process = new Process();
process.StartInfo.FileName = "cmd.exe";
process.StartInfo.Arguments = $"/c \"timeout 1 /nobreak & copy /y \"{sourcePath}\" \"{targetPath}\" & del \"{sourcePath}\" & echo Completed & pause\"";
process.StartInfo.Arguments = $"/c \"timeout 1 /nobreak & copy /y \"{targetPath}\" \"{targetPath}.bak\" & copy /y \"{sourcePath}\" \"{targetPath}\" & del \"{sourcePath}\" & echo Completed & pause\"";
process.StartInfo.UseShellExecute = false;
process.Start();
}
Expand Down

0 comments on commit 3836019

Please sign in to comment.