mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-03 04:52:14 +01:00
Add displayList debug dialog
This commit is contained in:
1 parent
976b440781
commit
2a6af9b8a3
31 files changed
+2950
-250
No files matched your search
@@ -236,14 +236,14 @@ void CtrlRegisterList::paintEvent(QPaintEvent *)
|
||||
painter.setBrush(currentBrush);
|
||||
if (i<cpu->GetNumRegsInCategory(category))
|
||||
{
|
||||
char temp[256];
|
||||
sprintf(temp,"%s",cpu->GetRegName(category,i));
|
||||
QString regName = cpu->GetRegName(category,i);
|
||||
textPen.setColor(0x600000);
|
||||
painter.setPen(textPen);
|
||||
painter.drawText(17,rowY1-3+rowHeight,temp);
|
||||
painter.drawText(17,rowY1-3+rowHeight,regName);
|
||||
textPen.setColor(0xFF000000);
|
||||
painter.setPen(textPen);
|
||||
|
||||
char temp[256];
|
||||
cpu->PrintRegValue(category,i,temp);
|
||||
if (category == 0 && changedCat0Regs[i])
|
||||
{
|
||||
@@ -331,10 +331,7 @@ void CtrlRegisterList::CopyValue()
|
||||
u32 val = cpu->GetRegValue(cat,reg);
|
||||
EmuThread_LockDraw(false);
|
||||
|
||||
char temp[24];
|
||||
sprintf(temp,"%08x",val);
|
||||
|
||||
QApplication::clipboard()->setText(temp);
|
||||
QApplication::clipboard()->setText(QString("%1").arg(val,8,16,QChar('0')));
|
||||
}
|
||||
|
||||
void CtrlRegisterList::Change()
|
||||
|
||||
Reference in new issue
Block a user