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
@@ -302,7 +302,7 @@ void CtrlDisAsmView::assembleOpcode(u32 address, std::string defaultText)
{
for (int reg = 0; reg < debugger->GetNumRegsInCategory(cat); reg++)
{
if (strcasecmp(debugger->GetRegName(cat,reg),registerName.c_str()) == 0)
if (strcasecmp(debugger->GetRegName(cat,reg).c_str(), registerName.c_str()) == 0)
{
debugger->SetRegValue(cat,reg,value);
Reporting::NotifyDebugger();