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

+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;
}