mirror of
https://github.com/sp-tarkov/patcher.git
synced 2025-02-12 21:10:46 -05:00
slight fixes
This commit is contained in:
parent
aa5bfb3b40
commit
a3d9bf0799
@ -4,8 +4,8 @@
|
|||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<AssemblyVersion>2.10.0</AssemblyVersion>
|
<AssemblyVersion>2.10.1</AssemblyVersion>
|
||||||
<FileVersion>2.10.0</FileVersion>
|
<FileVersion>2.10.1</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AvaloniaResource Include="Assets\**" />
|
<AvaloniaResource Include="Assets\**" />
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<AssemblyVersion>2.10.0</AssemblyVersion>
|
<AssemblyVersion>2.10.1</AssemblyVersion>
|
||||||
<FileVersion>2.10.0</FileVersion>
|
<FileVersion>2.10.1</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
BIN
Patcher/PatchGenerator/Resources/PatchClient.exe
(Stored with Git LFS)
BIN
Patcher/PatchGenerator/Resources/PatchClient.exe
(Stored with Git LFS)
Binary file not shown.
@ -29,24 +29,34 @@ public class XdeltaProcessHelper
|
|||||||
|
|
||||||
private bool RunNormal()
|
private bool RunNormal()
|
||||||
{
|
{
|
||||||
using var proc = new Process();
|
try
|
||||||
|
|
||||||
proc.StartInfo = new ProcessStartInfo
|
|
||||||
{
|
{
|
||||||
FileName = LazyOperations.XDelta3Path,
|
using var proc = new Process();
|
||||||
Arguments = $"{_args} \"{_sourcePath}\" \"{_deltaPath}\" \"{_decodedPath}\"",
|
|
||||||
CreateNoWindow = true
|
proc.StartInfo = new ProcessStartInfo
|
||||||
};
|
{
|
||||||
|
FileName = LazyOperations.XDelta3Path,
|
||||||
|
Arguments = $"{_args} \"{_sourcePath}\" \"{_deltaPath}\" \"{_decodedPath}\"",
|
||||||
|
CreateNoWindow = true
|
||||||
|
};
|
||||||
|
|
||||||
|
proc.Start();
|
||||||
|
|
||||||
|
if (!proc.WaitForExit(_timeout))
|
||||||
|
{
|
||||||
|
PatchLogger.LogError("xdelta3 process timed out");
|
||||||
|
PatchLogger.LogDebug($"xdelta exit code: {proc.ExitCode}");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (proc.WaitForExit(_timeout))
|
|
||||||
{
|
|
||||||
PatchLogger.LogError("xdelta3 process timed out");
|
|
||||||
PatchLogger.LogDebug($"xdelta exit code: {proc.ExitCode}");
|
PatchLogger.LogDebug($"xdelta exit code: {proc.ExitCode}");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
PatchLogger.LogException(ex);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
PatchLogger.LogDebug($"xdelta exit code: {proc.ExitCode}");
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool DebugPathsCheck()
|
private bool DebugPathsCheck()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user