Fix anti crash check.

This commit is contained in:
Fabian
2023-07-10 15:48:35 +02:00
parent 22e0d619f7
commit 09783a9103

View File

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