From b14f239971966c9eac3661ebbf29ddc1a0df886b Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Thu, 18 Aug 2022 12:41:35 +0200 Subject: [PATCH] Don't add 'common_sdk.rpak' and 'ui_mp.rpak' to the loaded handle vector This prevents those 2 rpaks from being unloaded, they should never be auto-unloaded. --- r5dev/engine/cmodel_bsp.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/r5dev/engine/cmodel_bsp.cpp b/r5dev/engine/cmodel_bsp.cpp index 3d521a7e..68b041ca 100644 --- a/r5dev/engine/cmodel_bsp.cpp +++ b/r5dev/engine/cmodel_bsp.cpp @@ -293,17 +293,9 @@ void MOD_ProcessPakQueue() *(_DWORD*)v15 = g_pakLoadApi->LoadAsync(v17, g_pMallocPool.GetPtr(), 4, 0); if (strcmp(v17, "common_mp.rpak") == 0 || strcmp(v17, "common_sp.rpak") == 0 || strcmp(v17, "common_pve.rpak") == 0) - { RPakHandle_t pakHandle = g_pakLoadApi->LoadAsync("common_sdk.rpak", g_pMallocPool.GetPtr(), 4, 0); - if (pakHandle != -1) - g_vLoadedPakHandle.push_back(pakHandle); - } if (strcmp(v17, "ui_mp.rpak") == 0) - { RPakHandle_t pakHandle = g_pakLoadApi->LoadAsync("ui_sdk.rpak", g_pMallocPool.GetPtr(), 4, 0); - if (pakHandle != -1) - g_vLoadedPakHandle.push_back(pakHandle); - } LABEL_37: v21 = *(_DWORD*)v15;