mirror of
https://github.com/araxiaonline/WoW-Launcher.git
synced 2026-06-13 01:22:21 -04:00
Add custom cdns file patch.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user