mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
Hook a different function to do waiting in.
This commit is contained in:
parent
5838ef224f
commit
6f313ed5a8
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue