-fixed "Copy value" in memory view
-SetFocus on right click in memory view -added a few more default symbols to the symbol map
This commit is contained in:
parent
3c8b7d3f33
commit
41fc339362
3 changed files with 33 additions and 15 deletions
|
@ -247,18 +247,32 @@ char *SymbolMap::GetDescription(unsigned int address)
|
|||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
static const int defaultSymbolsAddresses[] = {
|
||||
0x08800000, 0x08804000, 0x04000000, 0x88000000, 0x00010000
|
||||
};
|
||||
|
||||
static const char* defaultSymbolsNames[] = {
|
||||
"User memory", "Default load address", "VRAM","Kernel memory","Scratchpad"
|
||||
};
|
||||
|
||||
static const int defaultSymbolsAmount = sizeof(defaultSymbolsAddresses)/sizeof(const int);
|
||||
|
||||
void SymbolMap::FillSymbolListBox(HWND listbox,SymbolType symmask)
|
||||
{
|
||||
ShowWindow(listbox,SW_HIDE);
|
||||
ListBox_ResetContent(listbox);
|
||||
|
||||
//int style = GetWindowLong(listbox,GWL_STYLE);
|
||||
|
||||
ListBox_AddString(listbox,"(0x80000000)");
|
||||
ListBox_SetItemData(listbox,0,0x80000000);
|
||||
|
||||
//ListBox_AddString(listbox,"(0x80002000)");
|
||||
//ListBox_SetItemData(listbox,1,0x80002000);
|
||||
if (symmask & ST_DATA)
|
||||
{
|
||||
for (int i = 0; i < defaultSymbolsAmount; i++)
|
||||
{
|
||||
char temp[256];
|
||||
sprintf(temp,"0x%08X (%s)",defaultSymbolsAddresses[i],defaultSymbolsNames[i]);
|
||||
int index = ListBox_AddString(listbox,temp);
|
||||
ListBox_SetItemData(listbox,index,defaultSymbolsAddresses[i]);
|
||||
}
|
||||
}
|
||||
|
||||
SendMessage(listbox, WM_SETREDRAW, FALSE, 0);
|
||||
SendMessage(listbox, LB_INITSTORAGE, (WPARAM)entries.size(), (LPARAM)entries.size() * 30);
|
||||
|
@ -267,7 +281,7 @@ void SymbolMap::FillSymbolListBox(HWND listbox,SymbolType symmask)
|
|||
if (entries[i].type & symmask)
|
||||
{
|
||||
char temp[256];
|
||||
sprintf(temp,"%s (%d)",entries[i].name,entries[i].size);
|
||||
sprintf(temp,"0x%08X (%s)",entries[i].vaddress,entries[i].name);
|
||||
int index = ListBox_AddString(listbox,temp);
|
||||
ListBox_SetItemData(listbox,index,entries[i].vaddress);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue