diff options
author | Lectem <lectem@gmail.com> | 2015-07-25 22:00:40 +0200 |
---|---|---|
committer | Lectem <lectem@gmail.com> | 2015-07-26 16:23:12 +0200 |
commit | e663751f8b6cc6fd469d3974b3e68e434ebee9db (patch) | |
tree | c48b19af6f1e95671839cf4b6153c5e155b3494c /src/citra_qt/debugger | |
parent | citra-qt/command list: monospace font on windows (diff) | |
download | yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.gz yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.bz2 yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.lz yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.xz yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.tar.zst yuzu-e663751f8b6cc6fd469d3974b3e68e434ebee9db.zip |
Diffstat (limited to '')
-rw-r--r-- | src/citra_qt/debugger/graphics_cmdlists.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/citra_qt/debugger/graphics_cmdlists.cpp b/src/citra_qt/debugger/graphics_cmdlists.cpp index 9034b120e..0427ebc95 100644 --- a/src/citra_qt/debugger/graphics_cmdlists.cpp +++ b/src/citra_qt/debugger/graphics_cmdlists.cpp @@ -175,29 +175,29 @@ int GPUCommandListModel::rowCount(const QModelIndex& parent) const { } int GPUCommandListModel::columnCount(const QModelIndex& parent) const { - return 3; + return 4; } QVariant GPUCommandListModel::data(const QModelIndex& index, int role) const { if (!index.isValid()) return QVariant(); - const auto& writes = pica_trace.writes; - const Pica::CommandProcessor::CommandHeader cmd{writes[index.row()].Id()}; - const u32 val{writes[index.row()].Value()}; + const auto& write = pica_trace.writes[index.row()]; if (role == Qt::DisplayRole) { QString content; switch ( index.column() ) { case 0: - return QString::fromLatin1(Pica::Regs::GetCommandName(cmd.cmd_id).c_str()); + return QString::fromLatin1(Pica::Regs::GetCommandName(write.cmd_id).c_str()); case 1: - return QString("%1").arg(cmd.cmd_id, 3, 16, QLatin1Char('0')); + return QString("%1").arg(write.cmd_id, 3, 16, QLatin1Char('0')); case 2: - return QString("%1").arg(val, 8, 16, QLatin1Char('0')); + return QString("%1").arg(write.mask, 4, 2, QLatin1Char('0')); + case 3: + return QString("%1").arg(write.value, 8, 16, QLatin1Char('0')); } } else if (role == CommandIdRole) { - return QVariant::fromValue<int>(cmd.cmd_id.Value()); + return QVariant::fromValue<int>(write.cmd_id); } return QVariant(); @@ -213,6 +213,8 @@ QVariant GPUCommandListModel::headerData(int section, Qt::Orientation orientatio case 1: return tr("Register"); case 2: + return tr("Mask"); + case 3: return tr("New Value"); } |