diff --git a/src/Launcher.cs b/src/Launcher.cs index 8439b46..7b918f0 100644 --- a/src/Launcher.cs +++ b/src/Launcher.cs @@ -246,7 +246,7 @@ public static bool LaunchGame(string appPath, string gameCommandLine, ParseResul var modulusOffset = memory.Data.FindPattern(Patterns.Common.SignatureModulus); var legacyCertMode = clientVersion is (1, >= 14, <= 3, _) or (3, 4, <= 1, _) or (9, _, _, _) or (10, <= 1, < 5, _); - if (commandLineResult.GetValueForOption(LaunchOptions.SkipConnectionPatching)) + if (!commandLineResult.GetValueForOption(LaunchOptions.SkipConnectionPatching)) { if (legacyCertMode) { @@ -287,23 +287,23 @@ clientVersion is (9, 2, 7, _) or (3, _, _, _) or (10, _, _, _) or (1, >= 14, >= WaitForUnpack(ref processInfo, memory, ref mbi, gameAppData, antiCrash); #if x64 - if (commandLineResult.GetValueForOption(LaunchOptions.SkipConnectionPatching)) + if (!commandLineResult.GetValueForOption(LaunchOptions.SkipConnectionPatching)) { if (legacyCertMode) { Task.WaitAll(new[] { - memory.QueuePatch(Patterns.Windows.CertBundle, Patches.Windows.CertBundle, "CertBundle"), - memory.QueuePatch(Patterns.Windows.CertCommonName, Patches.Windows.CertCommonName, "CertCommonName", 5) - }, CancellationTokenSource.Token); + memory.QueuePatch(Patterns.Windows.CertBundle, Patches.Windows.CertBundle, "CertBundle"), + memory.QueuePatch(Patterns.Windows.CertCommonName, Patches.Windows.CertCommonName, "CertCommonName", 5) + }, CancellationTokenSource.Token); } else if (LaunchOptions.IsDevModeAllowed && commandLineResult.GetValueForOption(LaunchOptions.DevMode)) { Task.WaitAll(new[] { - memory.QueuePatch(Patterns.Windows.CertChain, Patches.Windows.CertChain, "CertChain"), - memory.QueuePatch(Patterns.Windows.CertCommonName, Patches.Windows.CertCommonName, "CertCommonName", 5) - }, CancellationTokenSource.Token); + memory.QueuePatch(Patterns.Windows.CertChain, Patches.Windows.CertChain, "CertChain"), + memory.QueuePatch(Patterns.Windows.CertCommonName, Patches.Windows.CertCommonName, "CertCommonName", 5) + }, CancellationTokenSource.Token); } }