@@ -326,19 +326,18 @@ const uint8_t* PCSX::Widgets::Assembly::ptr(uint32_t addr) {
326
326
return dummy;
327
327
}
328
328
}
329
- void PCSX::Widgets::Assembly::jumpToMemory (uint32_t addr, unsigned size, unsigned editorIndex /* = 0*/ ,
330
- bool forceShowEditor /* = false*/ ) {
331
- g_system->m_eventBus ->signal (PCSX::Events::GUI::JumpToMemory{addr, size, editorIndex, forceShowEditor});
329
+ void PCSX::Widgets::Assembly::jumpToMemory (uint32_t addr, unsigned size, unsigned editorIndex /* = 0*/ ) {
330
+ g_system->m_eventBus ->signal (PCSX::Events::GUI::JumpToMemory{addr, size, editorIndex});
332
331
}
333
332
void PCSX::Widgets::Assembly::addMemoryEditorContext (uint32_t addr, int size) {
334
333
if (ImGui::BeginPopupContextItem ()) {
335
- if (ImGui::MenuItem (_ (" Go to in Memory Editor #1 (Default Click)" ))) jumpToMemory (addr, size, 0 , true );
336
- if (ImGui::MenuItem (_ (" Go to in Memory Editor #2 (Shift+Click)" ))) jumpToMemory (addr, size, 1 , true );
337
- if (ImGui::MenuItem (_ (" Go to in Memory Editor #3 (Ctrl+Click)" ))) jumpToMemory (addr, size, 2 , true );
334
+ if (ImGui::MenuItem (_ (" Go to in Memory Editor #1 (Default Click)" ))) jumpToMemory (addr, size, 0 );
335
+ if (ImGui::MenuItem (_ (" Go to in Memory Editor #2 (Shift+Click)" ))) jumpToMemory (addr, size, 1 );
336
+ if (ImGui::MenuItem (_ (" Go to in Memory Editor #3 (Ctrl+Click)" ))) jumpToMemory (addr, size, 2 );
338
337
std::string itemLabel;
339
338
for (unsigned i = 3 ; i < 8 ; ++i) {
340
339
itemLabel = fmt::format (f_ (" Go to in Memory Editor #{}" ), i + 1 );
341
- if (ImGui::MenuItem (itemLabel.c_str ())) jumpToMemory (addr, size, i, true );
340
+ if (ImGui::MenuItem (itemLabel.c_str ())) jumpToMemory (addr, size, i);
342
341
}
343
342
if (ImGui::MenuItem (_ (" Create Memory Read Breakpoint" ))) {
344
343
g_emulator->m_debug ->addBreakpoint (addr, Debug::BreakpointType::Read, size, _ (" GUI" ));
@@ -354,7 +353,7 @@ void PCSX::Widgets::Assembly::addMemoryEditorSubMenu(uint32_t addr, int size) {
354
353
std::string itemLabel;
355
354
for (unsigned i = 0 ; i < 8 ; ++i) {
356
355
itemLabel = fmt::format (" #{}" , i + 1 );
357
- if (ImGui::MenuItem (itemLabel.c_str ())) jumpToMemory (addr, size, i, true );
356
+ if (ImGui::MenuItem (itemLabel.c_str ())) jumpToMemory (addr, size, i);
358
357
}
359
358
ImGui::EndMenu ();
360
359
}
@@ -381,7 +380,7 @@ void PCSX::Widgets::Assembly::OfB(int16_t offset, uint8_t reg, int size) {
381
380
ImGui::TextUnformatted (" " );
382
381
ImGui::SameLine (0 .0f , 0 .0f );
383
382
ImGui::PushStyleVar (ImGuiStyleVar_FramePadding, ImVec2 (0 , 0 ));
384
- if (ImGui::Button (label)) jumpToMemory (addr, size, targetEditorIndex, false );
383
+ if (ImGui::Button (label)) jumpToMemory (addr, size, targetEditorIndex);
385
384
ImGui::PopStyleVar ();
386
385
addMemoryEditorContext (addr, size);
387
386
if (ImGui::IsItemHovered ()) {
@@ -442,7 +441,7 @@ void PCSX::Widgets::Assembly::Offset(uint32_t addr, int size) {
442
441
ImGui::TextUnformatted (" " );
443
442
sameLine ();
444
443
ImGui::PushStyleVar (ImGuiStyleVar_FramePadding, ImVec2 (0 , 0 ));
445
- if (ImGui::Button (longLabel.c_str ())) jumpToMemory (addr, size, targetEditorIndex, false );
444
+ if (ImGui::Button (longLabel.c_str ())) jumpToMemory (addr, size, targetEditorIndex);
446
445
ImGui::PopStyleVar ();
447
446
addMemoryEditorContext (addr, size);
448
447
if (ImGui::IsItemHovered ()) {
0 commit comments