From 3af010c1f5c3daf34a8cc1bb29cb51f2b56f872d Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Fri, 21 Aug 2020 17:03:39 -0400 Subject: [PATCH] Update ProcessRunner --- AaxDecrypter/UNTESTED/AaxToM4bConverter.cs | 6 +++--- AaxDecrypter/UNTESTED/BytesCracker.cs | 3 +-- LibationLauncher/LibationLauncher.csproj | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/AaxDecrypter/UNTESTED/AaxToM4bConverter.cs b/AaxDecrypter/UNTESTED/AaxToM4bConverter.cs index c763d7db..18a7e68c 100644 --- a/AaxDecrypter/UNTESTED/AaxToM4bConverter.cs +++ b/AaxDecrypter/UNTESTED/AaxToM4bConverter.cs @@ -276,13 +276,13 @@ namespace AaxDecrypter }; info.EnvironmentVariables["VARIABLE"] = decryptKey; - var (output, exitCode) = info.RunHidden(); + var result = info.RunHidden(); // bad checksum -- bad decrypt key - if (output.Contains("checksums mismatch, aborting!")) + if (result.Output.Contains("checksums mismatch, aborting!")) return -99; - return exitCode; + return result.ExitCode; } // temp file names for steps 3, 4, 5 diff --git a/AaxDecrypter/UNTESTED/BytesCracker.cs b/AaxDecrypter/UNTESTED/BytesCracker.cs index 24cffbac..a9752b14 100644 --- a/AaxDecrypter/UNTESTED/BytesCracker.cs +++ b/AaxDecrypter/UNTESTED/BytesCracker.cs @@ -21,8 +21,7 @@ namespace AaxDecrypter }; // checksum is in the debug info. ffprobe's debug info is written to stderr, not stdout - var readErrorOutput = true; - var ffprobeStderr = info.RunHidden(readErrorOutput).Output; + var ffprobeStderr = info.RunHidden().Error; // example checksum line: // ... [aax] file checksum == 0c527840c4f18517157eb0b4f9d6f9317ce60cd1 diff --git a/LibationLauncher/LibationLauncher.csproj b/LibationLauncher/LibationLauncher.csproj index eb53d342..e7adc0f0 100644 --- a/LibationLauncher/LibationLauncher.csproj +++ b/LibationLauncher/LibationLauncher.csproj @@ -13,7 +13,7 @@ win-x64 - 3.1.12.196 + 3.1.12.214