mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Merge pull request #18566 from Nemoumbra/debugger-ui-fix
Stop opening some context menus when the game's not loaded
This commit is contained in:
3 files changed
+21
No files matched your search
@@ -954,6 +954,12 @@ void CtrlDisAsmView::onMouseUp(WPARAM wParam, LPARAM lParam, int button)
|
||||
}
|
||||
else if (button == 2)
|
||||
{
|
||||
// We don't want to let the users play with deallocated or uninitialized debugging objects
|
||||
GlobalUIState state = GetUIState();
|
||||
if (state != UISTATE_INGAME && state != UISTATE_PAUSEMENU) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (TriggerContextMenu(ContextMenuID::DISASM, wnd, ContextPoint::FromEvent(lParam)))
|
||||
{
|
||||
case ID_DISASM_GOTOINMEMORYVIEW:
|
||||
|
||||
Reference in new issue
Block a user