mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-15 02:30:32 +01:00
BPM: Fix CTD when exiting BPM in No GUI mode
This commit is contained in:
1 parent
f87175dc7f
commit
8b90e2d53d
1 file changed
+7
-4
@@ -1602,7 +1602,7 @@ void FullscreenUI::DrawExitWindow()
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, UIBackgroundTextColor);
|
||||
|
||||
if (BeginHorizontalMenu("exit_window", menu_pos, menu_size, 3))
|
||||
if (BeginHorizontalMenu("exit_window", menu_pos, menu_size, (Host::InNoGUIMode()) ? 2 : 3))
|
||||
{
|
||||
ResetFocusHere();
|
||||
|
||||
@@ -1621,10 +1621,13 @@ void FullscreenUI::DrawExitWindow()
|
||||
DoRequestExit();
|
||||
}
|
||||
|
||||
if (HorizontalMenuItem(GetCachedTexture("fullscreenui/desktop-mode.png"), FSUI_CSTR("Desktop Mode"),
|
||||
FSUI_CSTR("Exits Big Picture mode, returning to the desktop interface.")))
|
||||
if (!Host::InNoGUIMode())
|
||||
{
|
||||
DoDesktopMode();
|
||||
if (HorizontalMenuItem(GetCachedTexture("fullscreenui/desktop-mode.png"), FSUI_CSTR("Desktop Mode"),
|
||||
FSUI_CSTR("Exits Big Picture mode, returning to the desktop interface.")))
|
||||
{
|
||||
DoDesktopMode();
|
||||
}
|
||||
}
|
||||
}
|
||||
EndHorizontalMenu();
|
||||
|
||||
Reference in new issue
Block a user