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