From 09783a9103416f450287bbc0a8d6a4341c3e6a3d Mon Sep 17 00:00:00 2001 From: Fabian Date: Mon, 10 Jul 2023 15:48:35 +0200 Subject: [PATCH] Fix anti crash check. --- src/Launcher.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Launcher.cs b/src/Launcher.cs index 09880c3..64edba5 100644 --- a/src/Launcher.cs +++ b/src/Launcher.cs @@ -167,8 +167,9 @@ static class Launcher // We need to cache this here since we are using our RSA modulus as auth seed. var modulusOffset = memory.Data.FindPattern(Patterns.Common.SignatureModulus); + var legacyCertMode = clientVersion is (1, >= 14, <= 3, _) or (3, 4, <= 1, _) or (9, _, _, _) or (10, <= 1, _, _) and not (10, 1, 5, _); - if (clientVersion is (1, >= 14, <= 3, _) or (3, 4, <= 1, _) or (9, _, _, _) or (10, <= 1, _, _) and not (10, 1, 5, _)) + if (legacyCertMode) { Task.WaitAll(new[] { @@ -201,14 +202,14 @@ static class Launcher #if CUSTOM_FILES antiCrash = true; #else - antiCrash = commandLineResult.HasOption(LaunchOptions.UseStaticAuthSeed) || + antiCrash = legacyCertMode || commandLineResult.HasOption(LaunchOptions.UseStaticAuthSeed) || commandLineResult.GetValueForOption(LaunchOptions.DevMode) && LaunchOptions.IsDevModeAllowed; #endif WaitForUnpack(ref processInfo, memory, ref mbi, gameAppData, antiCrash); #if x64 - if (clientVersion is (1, >= 14, <= 3, _) or (3, 4, <= 1, _) or (9, _, _, _) or (10, <= 1, _, _) and not (10, 1, 5, _)) + if (legacyCertMode) { Task.WaitAll(new[] {