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

Method contextCopySegment

pcsx2-qt/Debugger/Memory/MemoryView.cpp:871–884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

869}
870
871void MemoryView::contextCopySegment()
872{
873 if (m_table.GetViewType() == MemoryViewType::FLOAT)
874 {
875 u32 intVal = m_table.GetSelectedSegment(cpu()).lo;
876 float val = 0;
877 std::memcpy(&val, &intVal, sizeof(val));
878 QApplication::clipboard()->setText(QString::number(val, 'g'));
879 }
880 else
881 {
882 QApplication::clipboard()->setText(QString::number(m_table.GetSelectedSegment(cpu()).lo, 16).toUpper());
883 }
884}
885
886void MemoryView::contextCopyCharacter()
887{

Callers

nothing calls this directly

Calls 2

GetViewTypeMethod · 0.80
GetSelectedSegmentMethod · 0.80

Tested by

no test coverage detected