mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #2441 from lioncash/break
DolphinWX: Add missing breaks to a switch in RegisterView
This commit is contained in:
commit
fcf5e0f850
@ -69,54 +69,48 @@ static wxString GetValueByRowCol(int row, int col)
|
||||
case 5:
|
||||
{
|
||||
if (row < 4)
|
||||
{
|
||||
return wxString::Format("DBAT%01d", row);
|
||||
}
|
||||
|
||||
if (row < 8)
|
||||
{
|
||||
return wxString::Format("IBAT%01d", row - 4);
|
||||
}
|
||||
|
||||
if (row < 12)
|
||||
{
|
||||
return wxString::Format("DBAT%01d", row - 4);
|
||||
}
|
||||
|
||||
if (row < 16)
|
||||
{
|
||||
return wxString::Format("IBAT%01d", row - 8);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case 6:
|
||||
{
|
||||
if (row < 4)
|
||||
{
|
||||
return wxString::Format("%016llx", (u64)PowerPC::ppcState.spr[SPR_DBAT0U + row * 2] << 32 | PowerPC::ppcState.spr[SPR_DBAT0L + row * 2]);
|
||||
}
|
||||
|
||||
if (row < 8)
|
||||
{
|
||||
return wxString::Format("%016llx", (u64)PowerPC::ppcState.spr[SPR_IBAT0U + (row - 4) * 2] << 32 | PowerPC::ppcState.spr[SPR_IBAT0L + (row - 4) * 2]);
|
||||
}
|
||||
|
||||
if (row < 12)
|
||||
{
|
||||
return wxString::Format("%016llx", (u64)PowerPC::ppcState.spr[SPR_DBAT4U + (row - 12) * 2] << 32 | PowerPC::ppcState.spr[SPR_DBAT4L + (row - 12) * 2]);
|
||||
}
|
||||
|
||||
if (row < 16)
|
||||
{
|
||||
return wxString::Format("%016llx", (u64)PowerPC::ppcState.spr[SPR_IBAT4U + (row - 16) * 2] << 32 | PowerPC::ppcState.spr[SPR_IBAT4L + (row - 16) * 2]);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case 7:
|
||||
{
|
||||
if (row < 16)
|
||||
{
|
||||
return wxString::Format("SR%02d", row);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case 8:
|
||||
{
|
||||
if (row < 16)
|
||||
{
|
||||
return wxString::Format("%08x", PowerPC::ppcState.sr[row]);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
default: return wxEmptyString;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user