From a5c6145fea0b4e330f93f07756d24331dcb677b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20K=C3=B6nig?= Date: Fri, 18 Nov 2022 10:56:02 +0100 Subject: [PATCH] Use the alternate load file id patterns on 10.0+ Latest releases at https://github.com/Arctium/WoW-Launcher/releases/tag/latest --- src/Launcher.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Launcher.cs b/src/Launcher.cs index 9c7dae2..5b2a6af 100644 --- a/src/Launcher.cs +++ b/src/Launcher.cs @@ -1,4 +1,4 @@ -// Copyright (c) Arctium. +// Copyright (c) Arctium. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.CommandLine.Parsing; @@ -183,9 +183,10 @@ class Launcher #if CUSTOM_FILES Task.WaitAll(new[] { - memory.QueuePatch(Patterns.Windows.LoadByFileId, Patches.Windows.NoJump, "LoadByFileId", 6), + (clientVersion is (10, _, _, _)) + ? memory.QueuePatch(Patterns.Windows.LoadByFileIdAlternate, Patches.Windows.NoJump, "LoadByFileId", 3) + : memory.QueuePatch(Patterns.Windows.LoadByFileId, Patches.Windows.NoJump, "LoadByFileId", 6), - // 10.0.0 (Prepatch) changed a pattern. (clientVersion is (10, _, _, _)) ? memory.QueuePatch(Patterns.Windows.LoadByFilePathAlternate, Patches.Windows.NoJump, "LoadByFilePath", 3) : memory.QueuePatch(Patterns.Windows.LoadByFilePath, Patches.Windows.NoJump, "LoadByFilePath", 3)