Compare commits
No commits in common. "e5f6c681dec14d7e7c54e1e06dc914041fba7bc1" and "c49c076ea756eb74b3f6070f49493581b8a5b2e2" have entirely different histories.
e5f6c681de
...
c49c076ea7
@ -83,12 +83,6 @@ namespace PatcherUtils
|
|||||||
var sourceInfo = new FileInfo(SourceFilePath);
|
var sourceInfo = new FileInfo(SourceFilePath);
|
||||||
var targetInfo = new FileInfo(TargetFilePath);
|
var targetInfo = new FileInfo(TargetFilePath);
|
||||||
|
|
||||||
// Return false if file size differs
|
|
||||||
if (sourceInfo.Length != targetInfo.Length)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
using (MD5 md5Service = MD5.Create())
|
using (MD5 md5Service = MD5.Create())
|
||||||
using (var sourceStream = File.OpenRead(SourceFilePath))
|
using (var sourceStream = File.OpenRead(SourceFilePath))
|
||||||
using (var targetStream = File.OpenRead(TargetFilePath))
|
using (var targetStream = File.OpenRead(TargetFilePath))
|
||||||
@ -172,7 +166,7 @@ namespace PatcherUtils
|
|||||||
Process.Start(new ProcessStartInfo
|
Process.Start(new ProcessStartInfo
|
||||||
{
|
{
|
||||||
FileName = LazyOperations.XDelta3Path,
|
FileName = LazyOperations.XDelta3Path,
|
||||||
Arguments = $"-0 -e -f -S none -s \"{SourceFilePath}\" \"{TargetFilePath}\" \"{deltaPath}\"",
|
Arguments = $"-0 -e -f -s \"{SourceFilePath}\" \"{TargetFilePath}\" \"{deltaPath}\"",
|
||||||
CreateNoWindow = true
|
CreateNoWindow = true
|
||||||
})
|
})
|
||||||
.WaitForExit();
|
.WaitForExit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user