Fix game exit
This commit is contained in:
@@ -334,7 +334,6 @@ void UIScene_MainMenu::handlePress(F64 controlId, F64 childId)
|
|||||||
m_eAction=eAction_RunUnlockOrDLC;
|
m_eAction=eAction_RunUnlockOrDLC;
|
||||||
signInReturnedFunc = &UIScene_MainMenu::UnlockFullGame_SignInReturned;
|
signInReturnedFunc = &UIScene_MainMenu::UnlockFullGame_SignInReturned;
|
||||||
break;
|
break;
|
||||||
#if defined _XBOX
|
|
||||||
case eControl_Exit:
|
case eControl_Exit:
|
||||||
if( ProfileManager.IsFullVersion() )
|
if( ProfileManager.IsFullVersion() )
|
||||||
{
|
{
|
||||||
@@ -345,13 +344,14 @@ void UIScene_MainMenu::handlePress(F64 controlId, F64 childId)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#ifdef _XBOX
|
||||||
#ifdef _XBOX_ONE
|
#ifdef _XBOX_ONE
|
||||||
ui.ShowPlayerDisplayname(true);
|
ui.ShowPlayerDisplayname(true);
|
||||||
#endif
|
#endif
|
||||||
ui.NavigateToScene(primaryPad,eUIScene_TrialExitUpsell);
|
ui.NavigateToScene(primaryPad,eUIScene_TrialExitUpsell);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _DURANGO
|
#ifdef _DURANGO
|
||||||
case eControl_XboxHelp:
|
case eControl_XboxHelp:
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ void CConsoleMinecraftApp::StoreLaunchData()
|
|||||||
}
|
}
|
||||||
void CConsoleMinecraftApp::ExitGame()
|
void CConsoleMinecraftApp::ExitGame()
|
||||||
{
|
{
|
||||||
|
// This is likely not the correct way to exit the game, but it will do for now
|
||||||
|
ExitProcess(0);
|
||||||
}
|
}
|
||||||
void CConsoleMinecraftApp::FatalLoadError()
|
void CConsoleMinecraftApp::FatalLoadError()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user