From 7a95fd826a41841af178c4be09c2bb6724f6d0f9 Mon Sep 17 00:00:00 2001 From: DrPerkyLegit <116128211+DrPerkyLegit@users.noreply.github.com> Date: Tue, 23 Jun 2026 16:33:46 -0400 Subject: [PATCH] fix exit button --- Minecraft.Client/Common/UI/UIScene_MainMenu.cpp | 3 ++- Minecraft.Client/Windows64/Windows64_App.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Minecraft.Client/Common/UI/UIScene_MainMenu.cpp b/Minecraft.Client/Common/UI/UIScene_MainMenu.cpp index 7724aaaf..0c3f9c08 100644 --- a/Minecraft.Client/Common/UI/UIScene_MainMenu.cpp +++ b/Minecraft.Client/Common/UI/UIScene_MainMenu.cpp @@ -334,7 +334,8 @@ void UIScene_MainMenu::handlePress(F64 controlId, F64 childId) m_eAction=eAction_RunUnlockOrDLC; signInReturnedFunc = &UIScene_MainMenu::UnlockFullGame_SignInReturned; break; -#if defined _XBOX + //DrPerky - added exit control handling on windows +#if defined _XBOX || defined _WINDOWS64 case eControl_Exit: if( ProfileManager.IsFullVersion() ) { diff --git a/Minecraft.Client/Windows64/Windows64_App.cpp b/Minecraft.Client/Windows64/Windows64_App.cpp index ef9f6cf6..681b3a26 100644 --- a/Minecraft.Client/Windows64/Windows64_App.cpp +++ b/Minecraft.Client/Windows64/Windows64_App.cpp @@ -26,6 +26,7 @@ void CConsoleMinecraftApp::StoreLaunchData() } void CConsoleMinecraftApp::ExitGame() { + exit(0); } void CConsoleMinecraftApp::FatalLoadError() {