MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / loadSearchResults

Method loadSearchResults

pcsx2-qt/Debugger/Memory/MemorySearchView.cpp:586–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584}
585
586void MemorySearchView::loadSearchResults()
587{
588 const u32 numLoaded = m_ui.listSearchResults->count();
589 const u32 amountLeftToLoad = m_searchResults.size() - numLoaded;
590 if (amountLeftToLoad < 1)
591 return;
592
593 const bool isFirstLoad = numLoaded == 0;
594 const u32 maxLoadAmount = isFirstLoad ? m_initialResultsLoadLimit : m_numResultsAddedPerLoad;
595 const u32 numToLoad = amountLeftToLoad > maxLoadAmount ? maxLoadAmount : amountLeftToLoad;
596
597 for (u32 i = 0; i < numToLoad; i++)
598 {
599 const u32 address = m_searchResults.at(numLoaded + i).getAddress();
600 QListWidgetItem* item = new QListWidgetItem(QtUtils::FilledQStringFromValue(address, 16));
601 item->setData(Qt::UserRole, address);
602 m_ui.listSearchResults->addItem(item);
603 }
604}
605
606SearchType MemorySearchView::getCurrentSearchType()
607{

Callers

nothing calls this directly

Calls 6

FilledQStringFromValueFunction · 0.85
atMethod · 0.80
countMethod · 0.45
sizeMethod · 0.45
getAddressMethod · 0.45
setDataMethod · 0.45

Tested by

no test coverage detected