mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
Debugger: Fix submenu offsets from removing unused.
The wrong menus were showing in several places, especially the GE debugger.
This commit is contained in:
1 parent
7dde8ef9f3
commit
58238abef5
7 files changed
+14
-9
No files matched your search
@@ -18,6 +18,7 @@
|
||||
#include "DumpMemoryWindow.h"
|
||||
|
||||
wchar_t CtrlMemView::szClassName[] = L"CtrlMemView";
|
||||
constexpr int POPUP_SUBMENU_ID_MEMVIEW = 0;
|
||||
extern HMENU g_hPopupMenus;
|
||||
|
||||
CtrlMemView::CtrlMemView(HWND _wnd)
|
||||
@@ -482,7 +483,7 @@ void CtrlMemView::onMouseUp(WPARAM wParam, LPARAM lParam, int button)
|
||||
bool enable16 = !asciiSelected && (curAddress % 2) == 0;
|
||||
bool enable32 = !asciiSelected && (curAddress % 4) == 0;
|
||||
|
||||
HMENU menu = GetSubMenu(g_hPopupMenus,0);
|
||||
HMENU menu = GetSubMenu(g_hPopupMenus, POPUP_SUBMENU_ID_MEMVIEW);
|
||||
EnableMenuItem(menu,ID_MEMVIEW_COPYVALUE_16,enable16 ? MF_ENABLED : MF_GRAYED);
|
||||
EnableMenuItem(menu,ID_MEMVIEW_COPYVALUE_32,enable32 ? MF_ENABLED : MF_GRAYED);
|
||||
|
||||
|
||||
Reference in new issue
Block a user