diff options
| author | 2017-01-28 14:48:13 -0800 | |
|---|---|---|
| committer | 2017-02-09 00:04:24 -0800 | |
| commit | f241bb72f5b6b0b213053e000051bf3b7e6b4bb0 (patch) | |
| tree | 8e5b02afe942842d4e86b420dfc4474224bbe114 /src/citra_qt/debugger/graphics | |
| parent | VideoCore: Use union to index into Regs struct (diff) | |
| download | yuzu-f241bb72f5b6b0b213053e000051bf3b7e6b4bb0.tar.gz yuzu-f241bb72f5b6b0b213053e000051bf3b7e6b4bb0.tar.xz yuzu-f241bb72f5b6b0b213053e000051bf3b7e6b4bb0.zip | |
Pica/Regs: Use binary search to look up reg names
This gets rid of the static unordered_map. Also changes the return type
const char*, avoiding unnecessary allocations (the result was only used
by calling .c_str() on it.)
Diffstat (limited to 'src/citra_qt/debugger/graphics')
| -rw-r--r-- | src/citra_qt/debugger/graphics/graphics_cmdlists.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/citra_qt/debugger/graphics/graphics_cmdlists.cpp b/src/citra_qt/debugger/graphics/graphics_cmdlists.cpp index 536548f36..c68fe753b 100644 --- a/src/citra_qt/debugger/graphics/graphics_cmdlists.cpp +++ b/src/citra_qt/debugger/graphics/graphics_cmdlists.cpp | |||
| @@ -72,7 +72,7 @@ QVariant GPUCommandListModel::data(const QModelIndex& index, int role) const { | |||
| 72 | if (role == Qt::DisplayRole) { | 72 | if (role == Qt::DisplayRole) { |
| 73 | switch (index.column()) { | 73 | switch (index.column()) { |
| 74 | case 0: | 74 | case 0: |
| 75 | return QString::fromLatin1(Pica::Regs::GetCommandName(write.cmd_id).c_str()); | 75 | return QString::fromLatin1(Pica::Regs::GetRegisterName(write.cmd_id)); |
| 76 | case 1: | 76 | case 1: |
| 77 | return QString("%1").arg(write.cmd_id, 3, 16, QLatin1Char('0')); | 77 | return QString("%1").arg(write.cmd_id, 3, 16, QLatin1Char('0')); |
| 78 | case 2: | 78 | case 2: |