From 2ed42296dbad979a5ff629c408ef625ecc95bf00 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 30 Jan 2024 14:30:20 +0100 Subject: [PATCH] RTech: properly disable asset streaming on dedicated server Just set the mode to 0, required as we rebuilt the functions and can't really check for dedicated there, we have to initialize it with this mode. --- src/resource/patch/r5apex_ds.patch | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/resource/patch/r5apex_ds.patch b/src/resource/patch/r5apex_ds.patch index 95f156ee..43b5a3dc 100644 --- a/src/resource/patch/r5apex_ds.patch +++ b/src/resource/patch/r5apex_ds.patch @@ -22,3 +22,8 @@ // Prevent 'fps_max' from being reset in 'CEngine::Frame' if 'sv_cheats' isn't set; this is bound to the server's tickrate in sdk code to save CPU time. 0x296587: "jnz short loc_1402971B7" --> "jmp short loc_1402971B7" + +// Disable pak asset streaming system by calling Pak_Initialize() with mode 0, +// since the dedicated server doesn't use model or texture streaming, and as a +// result the files aren't shipped. +0x44BE87: "mov ecx, 0x1" --> "mov ecx, 0x0"