diff options
Diffstat (limited to 'src/citra_qt/debugger/graphics_breakpoints.cpp')
| -rw-r--r-- | src/citra_qt/debugger/graphics_breakpoints.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/citra_qt/debugger/graphics_breakpoints.cpp b/src/citra_qt/debugger/graphics_breakpoints.cpp index 53394b6e6..4cb41db22 100644 --- a/src/citra_qt/debugger/graphics_breakpoints.cpp +++ b/src/citra_qt/debugger/graphics_breakpoints.cpp | |||
| @@ -39,15 +39,17 @@ QVariant BreakPointModel::data(const QModelIndex& index, int role) const | |||
| 39 | switch (index.column()) { | 39 | switch (index.column()) { |
| 40 | case 0: | 40 | case 0: |
| 41 | { | 41 | { |
| 42 | std::map<Pica::DebugContext::Event, QString> map; | 42 | static const std::map<Pica::DebugContext::Event, QString> map = { |
| 43 | map.insert({Pica::DebugContext::Event::CommandLoaded, tr("Pica command loaded")}); | 43 | { Pica::DebugContext::Event::CommandLoaded, tr("Pica command loaded") }, |
| 44 | map.insert({Pica::DebugContext::Event::CommandProcessed, tr("Pica command processed")}); | 44 | { Pica::DebugContext::Event::CommandProcessed, tr("Pica command processed") }, |
| 45 | map.insert({Pica::DebugContext::Event::IncomingPrimitiveBatch, tr("Incoming primitive batch")}); | 45 | { Pica::DebugContext::Event::IncomingPrimitiveBatch, tr("Incoming primitive batch") }, |
| 46 | map.insert({Pica::DebugContext::Event::FinishedPrimitiveBatch, tr("Finished primitive batch")}); | 46 | { Pica::DebugContext::Event::FinishedPrimitiveBatch, tr("Finished primitive batch") }, |
| 47 | { Pica::DebugContext::Event::VertexLoaded, tr("Vertex Loaded") } | ||
| 48 | }; | ||
| 47 | 49 | ||
| 48 | _dbg_assert_(Debug_GPU, map.size() == static_cast<size_t>(Pica::DebugContext::Event::NumEvents)); | 50 | _dbg_assert_(Debug_GPU, map.size() == static_cast<size_t>(Pica::DebugContext::Event::NumEvents)); |
| 49 | 51 | ||
| 50 | return map[event]; | 52 | return (map.find(event) != map.end()) ? map.at(event) : QString(); |
| 51 | } | 53 | } |
| 52 | 54 | ||
| 53 | case 1: | 55 | case 1: |