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[] {