Fix close button

Fixes the close button on the home gui screen
This commit is contained in:
Robert Delaney
2026-03-02 21:35:17 -08:00
parent 4d04f408d7
commit 21c4f19271
5 changed files with 21 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
#ifdef _WINDOWS64
#include "AchievementScreen.h"
#include "StatsCounter.h"
#include "Windows64_Minecraft.h"
#endif
#ifdef __ORBIS__
#include <error_dialog.h>
@@ -368,6 +369,12 @@ void UIScene_MainMenu::handlePress(F64 controlId, F64 childId)
break;
#endif
#ifdef _WINDOWS64
case eControl_Exit:
PostMessage(GetMinecraftWindowHWND(), WM_CLOSE, 0, 0);
break;
#endif
default: __debugbreak();
}