From fb3bd16580c561de8b3acce5cc4e75af12ce294a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20K=C3=B6nig?= Date: Wed, 22 Feb 2023 20:54:56 +0000 Subject: [PATCH] Add custom cdns file patch. --- src/Launcher.cs | 1 + src/Patches/Common.cs | 1 + src/Patterns/Common.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/src/Launcher.cs b/src/Launcher.cs index e6facf0..7249c43 100644 --- a/src/Launcher.cs +++ b/src/Launcher.cs @@ -153,6 +153,7 @@ class Launcher memory.PatchMemory(Patterns.Common.Portal, Patches.Common.Portal, "Login Portal"), memory.PatchMemory(Patterns.Common.VersionUrl, versionPatch, "Version URL"), + memory.PatchMemory(Patterns.Common.CdnsUrl, Patches.Common.CdnsUrl, "CDNs URL"), memory.PatchMemory(Patterns.Windows.LauncherLogin, Patches.Windows.LauncherLogin, "Launcher Login Registry") }, CancellationTokenSource.Token); diff --git a/src/Patches/Common.cs b/src/Patches/Common.cs index d11261b..20e7718 100644 --- a/src/Patches/Common.cs +++ b/src/Patches/Common.cs @@ -44,6 +44,7 @@ static class Common 0x29, 0xEC, 0x36, 0x7F, 0xB0, 0xF3, 0x41, 0xF2, 0x8E, 0x0F, 0x08, 0xD0, 0x37, 0xBA, 0xFC, 0x69 }; public static byte[] GetVersionUrl(int build) => Encoding.UTF8.GetBytes($"ngdp.arctium.io/%s/%s/{build}/versions"); + public static byte[] CdnsUrl => Encoding.UTF8.GetBytes("http://ngdp.arctium.io/customs/wow/cdns"); public static byte[] Portal = new byte[Patterns.Common.Portal.Length]; // Our own ca_bundle.txt.signed file. diff --git a/src/Patterns/Common.cs b/src/Patterns/Common.cs index a104c89..0626649 100644 --- a/src/Patterns/Common.cs +++ b/src/Patterns/Common.cs @@ -12,6 +12,7 @@ static class Common public static short[] CertBundle = "{\"Created\":".ToPattern(); public static short[] VersionUrl = "%s.patch.battle.net:1119/%s/versions".ToPattern(); + public static short[] CdnsUrl = "http://%s.patch.battle.net:1119/%s/cdns".ToPattern(); public static short[] Portal = ".actual.battle.net\0".ToPattern(); public static short[] CommandLineHelp = "World of Warcraft usage".ToPattern(); }