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.
This commit is contained in:
Kawe Mazidjatari 2022-08-18 12:41:35 +02:00
parent 5bc798fe97
commit b14f239971

View File

@ -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;