MCPcopy Create free account
hub / github.com/bbbradsmith/nsfplay / OnInsert

Method OnInsert

nsfplug_ui/NSFMemoryWriteDialog.cpp:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void NSFMemoryWriteDialog::OnInsert()
68{
69 UpdateData();
70 int ip = m_wlist.GetCaretIndex() + 1;
71 if(ip >= m_wlist.GetCount()) ip = -1;
72 ip = m_wlist.InsertString(ip, m_address + "," + m_value);
73 m_wlist.SetItemData(ip, (DWORD)((hex2int(m_address)<<8)+(hex2int(m_value))));
74 m_wlist.SetCaretIndex(ip);
75}
76
77void NSFMemoryWriteDialog::OnDelete()
78{

Callers

nothing calls this directly

Calls 1

hex2intFunction · 0.85

Tested by

no test coverage detected