diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/citra_qt/debugger/graphics_breakpoints.cpp | 11 | ||||
| -rw-r--r-- | src/citra_qt/debugger/graphics_cmdlists.cpp | 8 |
2 files changed, 13 insertions, 6 deletions
diff --git a/src/citra_qt/debugger/graphics_breakpoints.cpp b/src/citra_qt/debugger/graphics_breakpoints.cpp index 5973aafc8..df5579e15 100644 --- a/src/citra_qt/debugger/graphics_breakpoints.cpp +++ b/src/citra_qt/debugger/graphics_breakpoints.cpp | |||
| @@ -36,7 +36,9 @@ QVariant BreakPointModel::data(const QModelIndex& index, int role) const | |||
| 36 | switch (role) { | 36 | switch (role) { |
| 37 | case Qt::DisplayRole: | 37 | case Qt::DisplayRole: |
| 38 | { | 38 | { |
| 39 | if (index.column() == 0) { | 39 | switch (index.column()) { |
| 40 | case 0: | ||
| 41 | { | ||
| 40 | std::map<Pica::DebugContext::Event, QString> map; | 42 | std::map<Pica::DebugContext::Event, QString> map; |
| 41 | map.insert({Pica::DebugContext::Event::CommandLoaded, tr("Pica command loaded")}); | 43 | map.insert({Pica::DebugContext::Event::CommandLoaded, tr("Pica command loaded")}); |
| 42 | map.insert({Pica::DebugContext::Event::CommandProcessed, tr("Pica command processed")}); | 44 | map.insert({Pica::DebugContext::Event::CommandProcessed, tr("Pica command processed")}); |
| @@ -46,8 +48,13 @@ QVariant BreakPointModel::data(const QModelIndex& index, int role) const | |||
| 46 | _dbg_assert_(GUI, map.size() == static_cast<size_t>(Pica::DebugContext::Event::NumEvents)); | 48 | _dbg_assert_(GUI, map.size() == static_cast<size_t>(Pica::DebugContext::Event::NumEvents)); |
| 47 | 49 | ||
| 48 | return map[event]; | 50 | return map[event]; |
| 49 | } else if (index.column() == 1) { | 51 | } |
| 52 | |||
| 53 | case 1: | ||
| 50 | return data(index, Role_IsEnabled).toBool() ? tr("Enabled") : tr("Disabled"); | 54 | return data(index, Role_IsEnabled).toBool() ? tr("Enabled") : tr("Disabled"); |
| 55 | |||
| 56 | default: | ||
| 57 | break; | ||
| 51 | } | 58 | } |
| 52 | 59 | ||
| 53 | break; | 60 | break; |
diff --git a/src/citra_qt/debugger/graphics_cmdlists.cpp b/src/citra_qt/debugger/graphics_cmdlists.cpp index b2b8df101..7f97cf143 100644 --- a/src/citra_qt/debugger/graphics_cmdlists.cpp +++ b/src/citra_qt/debugger/graphics_cmdlists.cpp | |||
| @@ -177,14 +177,14 @@ QVariant GPUCommandListModel::data(const QModelIndex& index, int role) const { | |||
| 177 | if (role == Qt::DisplayRole) { | 177 | if (role == Qt::DisplayRole) { |
| 178 | QString content; | 178 | QString content; |
| 179 | if (index.column() == 0) { | 179 | if (index.column() == 0) { |
| 180 | content = QString::fromLatin1(Pica::Regs::GetCommandName(cmd.cmd_id).c_str()); | 180 | QString content = QString::fromLatin1(Pica::Regs::GetCommandName(cmd.cmd_id).c_str()); |
| 181 | content.append(" "); | 181 | content.append(" "); |
| 182 | return content; | ||
| 182 | } else if (index.column() == 1) { | 183 | } else if (index.column() == 1) { |
| 183 | content.append(QString("%1 ").arg(cmd.hex, 8, 16, QLatin1Char('0'))); | 184 | QString content = QString("%1 ").arg(cmd.hex, 8, 16, QLatin1Char('0')); |
| 184 | content.append(QString("%1 ").arg(val, 8, 16, QLatin1Char('0'))); | 185 | content.append(QString("%1 ").arg(val, 8, 16, QLatin1Char('0'))); |
| 186 | return content; | ||
| 185 | } | 187 | } |
| 186 | |||
| 187 | return QVariant(content); | ||
| 188 | } else if (role == CommandIdRole) { | 188 | } else if (role == CommandIdRole) { |
| 189 | return QVariant::fromValue<int>(cmd.cmd_id.Value()); | 189 | return QVariant::fromValue<int>(cmd.cmd_id.Value()); |
| 190 | } | 190 | } |