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

+5 -6
View File
@@ -624,7 +624,7 @@ int main(int argc, char **argv)
LogErrorf("world-io", "Failed to load configured world \"%s\".", WideToUtf8(targetWorldName).c_str());
g_NetworkManager.Terminate();
CleanupDevice();
return 4;
}
@@ -662,7 +662,7 @@ int main(int argc, char **argv)
C4JThread *startThread = new C4JThread(&CGameNetworkManager::RunNetworkGameThreadProc, (LPVOID)param, "RunNetworkGame");
startThread->Run();
while (startThread->isRunning() && !IsShutdownRequested())
while (startThread->IsRunning() && !IsShutdownRequested())
{
TickCoreSystems();
Sleep(10);
@@ -677,7 +677,7 @@ int main(int argc, char **argv)
LogErrorf("startup", "Failed to start dedicated server (code %d).", startupResult);
g_NetworkManager.Terminate();
CleanupDevice();
return 4;
}
@@ -788,7 +788,7 @@ int main(int argc, char **argv)
{
C4JThread waitThread(&WaitForServerStoppedThreadProc, NULL, "WaitServerStopped");
waitThread.Run();
while (waitThread.isRunning())
while (waitThread.IsRunning())
{
TickCoreSystems();
Sleep(10);
@@ -807,8 +807,7 @@ int main(int argc, char **argv)
LogDebugf("shutdown", "Network manager terminated.");
ServerRuntime::ServerLogManager::Shutdown();
CleanupDevice();
return 0;
}