diff options
author | bunnei <bunneidev@gmail.com> | 2014-12-20 18:40:06 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-12-20 18:40:06 +0100 |
commit | acabd7be82b4174a3adab0771df6320bdbc5a85b (patch) | |
tree | c47c2f68f50005bfb5c4003831f3977aec0be3ca /src/citra_qt/debugger/graphics_breakpoints.cpp | |
parent | Merge pull request #315 from chinhodado/master (diff) | |
parent | Pica/VertexShader: Promote a log message to critical status. (diff) | |
download | yuzu-acabd7be82b4174a3adab0771df6320bdbc5a85b.tar yuzu-acabd7be82b4174a3adab0771df6320bdbc5a85b.tar.gz yuzu-acabd7be82b4174a3adab0771df6320bdbc5a85b.tar.bz2 yuzu-acabd7be82b4174a3adab0771df6320bdbc5a85b.tar.lz yuzu-acabd7be82b4174a3adab0771df6320bdbc5a85b.tar.xz yuzu-acabd7be82b4174a3adab0771df6320bdbc5a85b.tar.zst yuzu-acabd7be82b4174a3adab0771df6320bdbc5a85b.zip |
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 switch (index.column()) { case 0: { - std::map<Pica::DebugContext::Event, QString> map; - map.insert({Pica::DebugContext::Event::CommandLoaded, tr("Pica command loaded")}); - map.insert({Pica::DebugContext::Event::CommandProcessed, tr("Pica command processed")}); - map.insert({Pica::DebugContext::Event::IncomingPrimitiveBatch, tr("Incoming primitive batch")}); - map.insert({Pica::DebugContext::Event::FinishedPrimitiveBatch, tr("Finished primitive batch")}); + static const std::map<Pica::DebugContext::Event, QString> map = { + { Pica::DebugContext::Event::CommandLoaded, tr("Pica command loaded") }, + { Pica::DebugContext::Event::CommandProcessed, tr("Pica command processed") }, + { Pica::DebugContext::Event::IncomingPrimitiveBatch, tr("Incoming primitive batch") }, + { Pica::DebugContext::Event::FinishedPrimitiveBatch, tr("Finished primitive batch") }, + { Pica::DebugContext::Event::VertexLoaded, tr("Vertex Loaded") } + }; _dbg_assert_(Debug_GPU, map.size() == static_cast<size_t>(Pica::DebugContext::Event::NumEvents)); - return map[event]; + return (map.find(event) != map.end()) ? map.at(event) : QString(); } case 1: |