MCPcopy Create free account
hub / github.com/cemu-project/Cemu / UpdateModuleLabel

Method UpdateModuleLabel

src/gui/debugger/DebuggerWindow2.cpp:667–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667void DebuggerWindow2::UpdateModuleLabel(uint32 address)
668{
669 if (address == 0)
670 address = m_disasm_ctrl->GetViewBaseAddress();
671
672 RPLModule* module = RPLLoader_FindModuleByCodeAddr(address);
673 if (module && m_module_address != module->regionMappingBase_text.GetMPTR())
674 {
675 m_module_label->SetLabel(wxString::Format("> %s", module->moduleName2.c_str()));
676 m_module_address = module->regionMappingBase_text.GetMPTR();
677 }
678 else if (address >= mmuRange_CODECAVE.getBase() && address < mmuRange_CODECAVE.getEnd())
679 {
680 m_module_label->SetLabel(wxString::Format("> %s", "Cemu codecave"));
681 m_module_address = mmuRange_CODECAVE.getBase();
682 }
683}

Callers

nothing calls this directly

Calls 6

GetViewBaseAddressMethod · 0.80
getBaseMethod · 0.80
getEndMethod · 0.80
GetMPTRMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected