diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-05-23 22:30:33 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-05-23 22:30:33 -0400 |
| commit | fcf5e0f850c47fb59c324bd7bc57bd9389c1ecf6 (patch) | |
| tree | 79a5276263af4d3dbff828dc8601e7fbb0f065c9 /Source/Core/DolphinWX/Debugger/RegisterView.cpp | |
| parent | 8f12cc5bc3d29e007a4f82753b3394a08ce54afd (diff) | |
| parent | 5c3fecc8e5345bcd11dd2d89c69a780e0be01414 (diff) | |
Merge pull request #2441 from lioncash/break
DolphinWX: Add missing breaks to a switch in RegisterView
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/RegisterView.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Debugger/RegisterView.cpp | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/Source/Core/DolphinWX/Debugger/RegisterView.cpp b/Source/Core/DolphinWX/Debugger/RegisterView.cpp index 61f9a964c6..008aa4567b 100644 --- a/Source/Core/DolphinWX/Debugger/RegisterView.cpp +++ b/Source/Core/DolphinWX/Debugger/RegisterView.cpp @@ -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; } |
