forked from cafeberry/cafeberry
fix: game always closing with exitcode 0
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user