MCPcopy Create free account
hub / github.com/aldelaro5/dolphin-memory-engine / setSearchRange

Method setSearchRange

Source/MemoryScanner/MemoryScanner.cpp:559–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559bool MemScanner::setSearchRange(u32 beginRange, u32 endRange)
560{
561 if (!DolphinComm::DolphinAccessor::isValidConsoleAddress(beginRange) ||
562 !DolphinComm::DolphinAccessor::isValidConsoleAddress(endRange))
563 {
564 return false;
565 }
566
567 m_searchInRangeBegin = true;
568 m_searchInRangeEnd = true;
569 bool aram = DolphinComm::DolphinAccessor::isARAMAccessible();
570 m_beginSearchRange =
571 Common::offsetToCacheIndex(Common::dolphinAddrToOffset(beginRange, aram), aram);
572 m_endSearchRange = Common::offsetToCacheIndex(Common::dolphinAddrToOffset(endRange, aram), aram);
573
574 return true;
575}
576
577bool MemScanner::setSearchRangeBegin(u32 beginRange)
578{

Callers

nothing calls this directly

Calls 2

offsetToCacheIndexFunction · 0.85
dolphinAddrToOffsetFunction · 0.85

Tested by

no test coverage detected