Reapply "Minecraft.World: C4JThread: Update Threader from Portable-LCE"

This reverts commit 6300671276.
This commit is contained in:
Anaël committed 2026-12-01 12:22:06 +01:00
1 parent e10f2859f4
commit 96a2beb04b
18 files changed
+843 -1369

No files matched your search

@@ -60,7 +60,6 @@ UIScene_FullscreenProgress::UIScene_FullscreenProgress(int iPad, void *initData,
m_labelTip.setVisible( m_CompletionData->bShowTips );
thread = new C4JThread(params->func, params->lpParam, "FullscreenProgress");
thread->SetProcessor(CPU_CORE_UI_SCENE); // TODO 4J Stu - Make sure this is a good thread/core to use
m_threadCompleted = false;
thread->Run();
@@ -219,7 +218,7 @@ void UIScene_FullscreenProgress::tick()
else
{
if(( m_CompletionData->bRequiresUserAction == TRUE ) && (!m_bWasCancelled))
{
{
m_threadCompleted = true;
m_buttonConfirm.setVisible( true );
// 4J-TomK - rebuild touch after confirm button made visible again
@@ -239,7 +238,7 @@ void UIScene_FullscreenProgress::tick()
{
case e_ProgressCompletion_AutosaveNavigateBack:
app.DebugPrintf("e_ProgressCompletion_AutosaveNavigateBack\n");
{
{
// 4J Stu - Fix for #65437 - Customer Encountered: Code: Settings: Autosave option doesn't work when the Host goes into idle state during gameplay.
// Autosave obviously cannot occur if an ignore autosave menu is displayed, so even if we navigate back to a scene and not empty
// then we still want to reset this flag which was set true by the navigate to the fullscreen progress
@@ -285,7 +284,7 @@ void UIScene_FullscreenProgress::tick()
app.DebugPrintf("Default\n");
break;
}
}
}
}
}
}
@@ -309,7 +308,7 @@ void UIScene_FullscreenProgress::handleInput(int iPad, int key, bool repeat, boo
break;
case ACTION_MENU_B:
case ACTION_MENU_CANCEL:
if( pressed && m_cancelFunc != nullptr && !m_bWasCancelled )
if( pressed && m_cancelFunc != nullptr && !m_bWasCancelled )
{
m_cancelText = -1;
updateTooltips();
@@ -376,7 +375,7 @@ void UIScene_FullscreenProgress::handleTimerComplete(int id)
switch(id)
{
case TIMER_FULLSCREEN_TIPS:
{
{
// display the next tip
wstring wsText=app.FormatHTMLString(m_iPad,app.GetString(app.GetNextTip()));
wchar_t startTags[64];
@@ -385,7 +384,7 @@ void UIScene_FullscreenProgress::handleTimerComplete(int id)
m_labelTip.setLabel(wsText);
}
break;
}
}
}
void UIScene_FullscreenProgress::SetWasCancelled(bool wasCancelled)
@@ -397,10 +396,10 @@ bool UIScene_FullscreenProgress::isReadyToDelete()
{
if( m_bWaitForThreadToDelete )
{
return !thread->isRunning();
return !thread->IsRunning();
}
else
{
return true;
}
}
}