From 353aee5c2fc662edddad3b646c1105f6de8060f2 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 26 Feb 2023 22:20:06 +0100 Subject: [PATCH] Add new dedicated server patches --- r5dev/resource/patch/r5apex_ds.patch | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/r5dev/resource/patch/r5apex_ds.patch b/r5dev/resource/patch/r5apex_ds.patch index f1916527..ca5c6f60 100644 --- a/r5dev/resource/patch/r5apex_ds.patch +++ b/r5dev/resource/patch/r5apex_ds.patch @@ -3,3 +3,10 @@ //---- PATCH1 0x6DA10: "sub rsp, 28h" --> "xor rax, rax; ret"; // CClientState constructor; Removed due to high mem allocation during init (100MiB+). 'CClientState' is useless on dedicated, and all its feature are thereof disabled. + +//---- PATCH2 +0x236354: "mov edi, 0x2" --> "mov edi, 0x1"; // RPak array contains 2 elements: 1='common_eraly', 2='ui'. Changing size to 1 only loads 'common_early'. 'ui' is not needed for dedi. + +//---- PATCH3 +0x340D07: "mov cs:g_pszMultiplayerUiPakName, rcx" --> "nop" // Prevent 'g_pszMultiplayerUiPakName' from being assigned to string "ui_mp.rpak" (prevents it from loading this pak file). +0x340FEA: "mov cs:g_pszMultiplayerUiPakName, rcx" --> "nop" \ No newline at end of file