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

Function RPLLoader_FindModuleByCodeAddr

src/Cafe/OS/RPL/rpl.cpp:2188–2198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2186}
2187
2188RPLModule* RPLLoader_FindModuleByCodeAddr(uint32 addr)
2189{
2190 for (sint32 i = 0; i < rplModuleCount; i++)
2191 {
2192 uint32 startAddr = rplModuleList[i]->regionMappingBase_text.GetMPTR();
2193 uint32 endAddr = rplModuleList[i]->regionMappingBase_text.GetMPTR() + rplModuleList[i]->regionSize_text;
2194 if (addr >= startAddr && addr < endAddr)
2195 return rplModuleList[i];
2196 }
2197 return nullptr;
2198}
2199
2200RPLModule* RPLLoader_FindModuleByDataAddr(uint32 addr)
2201{

Callers 10

OnDrawMethod · 0.85
SaveMethod · 0.85
DebuggerWindow2Method · 0.85
OnGameLoadedMethod · 0.85
UpdateModuleLabelMethod · 0.85
DrawDisassemblyLineMethod · 0.85
OnDrawMethod · 0.85
GetUnrelocatedAddressFunction · 0.85
OnDrawMethod · 0.85
UpdateIntegerRegisterMethod · 0.85

Calls 1

GetMPTRMethod · 0.45

Tested by

no test coverage detected