fix: game always closing with exitcode 0

This commit is contained in:
2026-08-21 17:58:41 -04:00
parent f615927e0e
commit 5845c6ce26
2 changed files with 17 additions and 11 deletions
+3 -8
View File
@@ -28,15 +28,10 @@ void CConsoleMinecraftApp::StoreLaunchData()
void CConsoleMinecraftApp::ExitGame()
{
if (g_pd3dDevice != NULL)
{
g_pd3dDevice->Release();
g_pd3dDevice = NULL;
}
app.DebugPrintf("CConsoleMinecraftApp::ExitGame\n");
CleanupDevice();
ExitProcess(0);
//str1k3r - since ExitGame is always ran by the user, it should always be 0
PostQuitMessage(0);
}
void CConsoleMinecraftApp::FatalLoadError()