Hook a different function to do waiting in.

This commit is contained in:
Skyth 2024-11-26 20:53:41 +03:00
parent 5838ef224f
commit 6f313ed5a8

View file

@ -4523,16 +4523,16 @@ static void PipelineCompilerThread()
static std::thread g_pipelineCompilerThread(PipelineCompilerThread); static std::thread g_pipelineCompilerThread(PipelineCompilerThread);
// Hedgehog::Database::WaitForArchiveLoadFinish // SWA::CGameModeStage::ExitLoading
PPC_FUNC_IMPL(__imp__sub_82E0C288); PPC_FUNC_IMPL(__imp__sub_825369A0);
PPC_FUNC(sub_82E0C288) PPC_FUNC(sub_825369A0)
{ {
__imp__sub_82E0C288(ctx, base);
// Wait for pipeline compilations to finish. // Wait for pipeline compilations to finish.
uint32_t value; uint32_t value;
while ((value = g_compilingModelCount.load()) != 0) while ((value = g_compilingModelCount.load()) != 0)
g_compilingModelCount.wait(value); g_compilingModelCount.wait(value);
__imp__sub_825369A0(ctx, base);
} }
// CModelData::CheckMadeAll // CModelData::CheckMadeAll