0
0
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:
IsWaffle 2023-11-15 22:03:05 -05:00
parent aa5bfb3b40
commit a3d9bf0799
4 changed files with 29 additions and 19 deletions

View File

@ -4,8 +4,8 @@
<TargetFramework>net6.0</TargetFramework>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<Nullable>enable</Nullable>
<AssemblyVersion>2.10.0</AssemblyVersion>
<FileVersion>2.10.0</FileVersion>
<AssemblyVersion>2.10.1</AssemblyVersion>
<FileVersion>2.10.1</FileVersion>
</PropertyGroup>
<ItemGroup>
<AvaloniaResource Include="Assets\**" />

View File

@ -4,8 +4,8 @@
<TargetFramework>net6.0</TargetFramework>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<Nullable>enable</Nullable>
<AssemblyVersion>2.10.0</AssemblyVersion>
<FileVersion>2.10.0</FileVersion>
<AssemblyVersion>2.10.1</AssemblyVersion>
<FileVersion>2.10.1</FileVersion>
</PropertyGroup>
<ItemGroup>

Binary file not shown.

View File

@ -28,6 +28,8 @@ public class XdeltaProcessHelper
public bool Run() => _isDebug ? RunDebug() : RunNormal();
private bool RunNormal()
{
try
{
using var proc = new Process();
@ -38,7 +40,9 @@ public class XdeltaProcessHelper
CreateNoWindow = true
};
if (proc.WaitForExit(_timeout))
proc.Start();
if (!proc.WaitForExit(_timeout))
{
PatchLogger.LogError("xdelta3 process timed out");
PatchLogger.LogDebug($"xdelta exit code: {proc.ExitCode}");
@ -48,6 +52,12 @@ public class XdeltaProcessHelper
PatchLogger.LogDebug($"xdelta exit code: {proc.ExitCode}");
return true;
}
catch (Exception ex)
{
PatchLogger.LogException(ex);
return false;
}
}
private bool DebugPathsCheck()
{