mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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:
parent
5bc798fe97
commit
b14f239971
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user