// Create CPU Mode menus void CCodeWindow::CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParameter, wxMenuBar *pMenuBar) { // CPU Mode wxMenu* pCoreMenu = new wxMenu; wxMenuItem* interpreter = pCoreMenu->Append(IDM_INTERPRETER, _("&Interpreter core"), StrToWxStr("This is necessary to get break points" " and stepping to work as explained in the Developer Documentation. But it can be very" " slow, perhaps slower than 1 fps."), wxITEM_CHECK); interpreter->Check(_LocalCoreStartupParameter.iCPUCore == 0); pCoreMenu->AppendSeparator(); pCoreMenu->Append(IDM_JITBLOCKLINKING, _("&JIT Block Linking off"), _("Provide safer execution by not linking the JIT blocks."), wxITEM_CHECK); pCoreMenu->Append(IDM_JITNOBLOCKCACHE, _("&Disable JIT Cache"), _("Avoid any involuntary JIT cache clearing, this may prevent Zelda TP from crashing.\n[This option must be selected before a game is started.]"), wxITEM_CHECK); pCoreMenu->Append(IDM_CLEARCODECACHE, _("&Clear JIT cache")); pCoreMenu->AppendSeparator(); pCoreMenu->Append(IDM_LOGINSTRUCTIONS, _("&Log JIT instruction coverage")); pCoreMenu->Append(IDM_SEARCHINSTRUCTION, _("&Search for an op")); pCoreMenu->AppendSeparator(); pCoreMenu->Append(IDM_JITOFF, _("&JIT off (JIT core)"), _("Turn off all JIT functions, but still use the JIT core from Jit.cpp"), wxITEM_CHECK); pCoreMenu->Append(IDM_JITLSOFF, _("&JIT LoadStore off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JITLSLBZXOFF, _(" &JIT LoadStore lbzx off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JITLSLXZOFF, _(" &JIT LoadStore lXz off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JITLSLWZOFF, _("&JIT LoadStore lwz off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JITLSFOFF, _("&JIT LoadStore Floating off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JITLSPOFF, _("&JIT LoadStore Paired off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JITFPOFF, _("&JIT FloatingPoint off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JITIOFF, _("&JIT Integer off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JITPOFF, _("&JIT Paired off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JITSROFF, _("&JIT SystemRegisters off"), wxEmptyString, wxITEM_CHECK); pMenuBar->Append(pCoreMenu, _("&JIT")); // Debug Menu wxMenu* pDebugMenu = new wxMenu; pDebugMenu->Append(IDM_STEP, _("Step &Into\tF11")); pDebugMenu->Append(IDM_STEPOVER, _("Step &Over\tF10")); pDebugMenu->Append(IDM_TOGGLE_BREAKPOINT, _("Toggle &Breakpoint\tF9")); pMenuBar->Append(pDebugMenu, _("&Debug")); CreateMenuSymbols(pMenuBar); }
// Create CPU Mode menus void CCodeWindow::CreateMenu(const SConfig& core_startup_parameter, wxMenuBar *pMenuBar) { // CPU Mode wxMenu* pCoreMenu = new wxMenu; wxMenuItem* interpreter = pCoreMenu->Append(IDM_INTERPRETER, _("&Interpreter core"), _("This is necessary to get break points" " and stepping to work as explained in the Developer Documentation. But it can be very" " slow, perhaps slower than 1 fps."), wxITEM_CHECK); interpreter->Check(core_startup_parameter.iCPUCore == PowerPC::CORE_INTERPRETER); pCoreMenu->AppendSeparator(); pCoreMenu->Append(IDM_JIT_NO_BLOCK_LINKING, _("&JIT Block Linking off"), _("Provide safer execution by not linking the JIT blocks."), wxITEM_CHECK); pCoreMenu->Append(IDM_JIT_NO_BLOCK_CACHE, _("&Disable JIT Cache"), _("Avoid any involuntary JIT cache clearing, this may prevent Zelda TP from crashing.\n[This option must be selected before a game is started.]"), wxITEM_CHECK); pCoreMenu->Append(IDM_CLEAR_CODE_CACHE, _("&Clear JIT cache")); pCoreMenu->AppendSeparator(); pCoreMenu->Append(IDM_LOG_INSTRUCTIONS, _("&Log JIT instruction coverage")); pCoreMenu->Append(IDM_SEARCH_INSTRUCTION, _("&Search for an op")); pCoreMenu->AppendSeparator(); pCoreMenu->Append(IDM_JIT_OFF, _("&JIT off (JIT core)"), _("Turn off all JIT functions, but still use the JIT core from Jit.cpp"), wxITEM_CHECK); pCoreMenu->Append(IDM_JIT_LS_OFF, _("&JIT LoadStore off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JIT_LSLBZX_OFF, _(" &JIT LoadStore lbzx off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JIT_LSLXZ_OFF, _(" &JIT LoadStore lXz off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JIT_LSLWZ_OFF, _("&JIT LoadStore lwz off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JIT_LSF_OFF, _("&JIT LoadStore Floating off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JIT_LSP_OFF, _("&JIT LoadStore Paired off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JIT_FP_OFF, _("&JIT FloatingPoint off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JIT_I_OFF, _("&JIT Integer off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JIT_P_OFF, _("&JIT Paired off"), wxEmptyString, wxITEM_CHECK); pCoreMenu->Append(IDM_JIT_SR_OFF, _("&JIT SystemRegisters off"), wxEmptyString, wxITEM_CHECK); pMenuBar->Append(pCoreMenu, _("&JIT")); // Debug Menu wxMenu* pDebugMenu = new wxMenu; pDebugMenu->Append(IDM_STEP, _("Step &Into\tF11")); pDebugMenu->Append(IDM_STEPOVER, _("Step &Over\tF10")); pDebugMenu->Append(IDM_STEPOUT, _("Step O&ut\tSHIFT+F11")); pDebugMenu->Append(IDM_TOGGLE_BREAKPOINT, _("Toggle &Breakpoint\tF9")); pDebugMenu->AppendSeparator(); wxMenu* pPerspectives = new wxMenu; Parent->m_SavedPerspectives = new wxMenu; pDebugMenu->AppendSubMenu(pPerspectives, _("Perspectives"), _("Edit Perspectives")); pPerspectives->Append(IDM_SAVE_PERSPECTIVE, _("Save perspectives"), _("Save currently-toggled perspectives")); pPerspectives->Append(IDM_EDIT_PERSPECTIVES, _("Edit perspectives"), _("Toggle editing of perspectives"), wxITEM_CHECK); pPerspectives->AppendSeparator(); pPerspectives->Append(IDM_ADD_PERSPECTIVE, _("Create new perspective")); pPerspectives->AppendSubMenu(Parent->m_SavedPerspectives, _("Saved perspectives")); Parent->PopulateSavedPerspectives(); pPerspectives->AppendSeparator(); wxMenu* pAddPane = new wxMenu; pPerspectives->AppendSubMenu(pAddPane, _("Add new pane to")); pAddPane->Append(IDM_PERSPECTIVES_ADD_PANE_TOP, _("Top")); pAddPane->Append(IDM_PERSPECTIVES_ADD_PANE_BOTTOM, _("Bottom")); pAddPane->Append(IDM_PERSPECTIVES_ADD_PANE_LEFT, _("Left")); pAddPane->Append(IDM_PERSPECTIVES_ADD_PANE_RIGHT, _("Right")); pAddPane->Append(IDM_PERSPECTIVES_ADD_PANE_CENTER, _("Center")); pPerspectives->Append(IDM_TAB_SPLIT, _("Tab split"), "", wxITEM_CHECK); pPerspectives->Append(IDM_NO_DOCKING, _("Disable docking"), "Disable docking of perspective panes to main window", wxITEM_CHECK); pMenuBar->Append(pDebugMenu, _("&Debug")); CreateMenuSymbols(pMenuBar); }