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

* kanged from https://github.com/portable-lce/portable-lce
This commit is contained in:
Anaël committed 2026-11-30 10:07:25 +01:00
1 parent 0a9d44470b
commit 99582f2b93
18 files changed
+843 -1369

No files matched your search

@@ -326,7 +326,6 @@ bool CGameNetworkManager::StartNetworkGame(Minecraft *minecraft, LPVOID lpParame
thread->SetPriority(THREAD_PRIORITY_BELOW_NORMAL);
#endif //__PS3__
thread->SetProcessor(CPU_CORE_SERVER);
thread->Run();
ServerReadyWait();
@@ -2154,7 +2153,7 @@ void CGameNetworkManager::ServerStoppedWait()
// If this is called from the main thread, then this won't be ticking anything which can mean that the storage manager state can't progress.
// This means that the server thread we are waiting on won't ever finish, as it might be locked waiting for this to complete itself.
// Do some ticking here then if this is the case.
if( C4JThread::isMainThread() )
if( C4JThread::IsMainThread() )
{
int result = WAIT_TIMEOUT;
do