RTech: add note for improvements in Pak_Swap_f

Should use the wait version of unload as that allows for helping other jobs and speeding up the process.
This commit is contained in:
Kawe Mazidjatari 2024-11-16 15:41:06 +01:00
parent 3f3b69e2bb
commit 1ec3df5874

View File

@ -168,6 +168,7 @@ static void Pak_Swap_f(const CCommand& args)
Msg(eDLL_T::RTECH, "Requested pak swap for handle '%d'\n", pakHandle);
g_pakLoadApi->UnloadAsync(pakHandle);
// TODO[ AMOS ]: use Pak_UnloadAsyncAndWaitOrHelp here.
while (pakInfo->status != PakStatus_e::PAK_STATUS_FREED) // Wait till this slot gets free'd.
std::this_thread::sleep_for(std::chrono::seconds(1));