Debugger: Make reg names safer, stop using v000.

Better to use S000, etc. as that's more clear throughout.
This commit is contained in:
Unknown W. Brackets committed 2023-04-29 09:48:33 -07:00
1 parent 3a21941f0b
commit 6da10463f9
14 files changed
+70 -82

No files matched your search

+1 -1
View File
@@ -251,7 +251,7 @@ void CtrlRegisterList::onPaint(WPARAM wParam, LPARAM lParam)
if (i<cpu->GetNumRegsInCategory(category))
{
char temp[256];
int temp_len = snprintf(temp, sizeof(temp), "%s", cpu->GetRegName(category, i));
int temp_len = snprintf(temp, sizeof(temp), "%s", cpu->GetRegName(category, i).c_str());
SetTextColor(hdc,0x600000);
TextOutA(hdc,17,rowY1,temp,temp_len);
SetTextColor(hdc,0x000000);