From d55f9369c7f038f3682510937e93d5bc950f7574 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Mon, 11 Jan 2021 12:41:04 -0800 Subject: [PATCH] Use GX_CMD_UNKNOWN_METRICS instead of magic number 0x44 --- Source/Core/Core/FifoPlayer/FifoAnalyzer.cpp | 2 +- Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/FifoPlayer/FifoAnalyzer.cpp b/Source/Core/Core/FifoPlayer/FifoAnalyzer.cpp index f3a49e6363..35305bcff3 100644 --- a/Source/Core/Core/FifoPlayer/FifoAnalyzer.cpp +++ b/Source/Core/Core/FifoPlayer/FifoAnalyzer.cpp @@ -164,7 +164,7 @@ u32 AnalyzeCommand(const u8* data, DecodeMode mode) switch (cmd) { case OpcodeDecoder::GX_NOP: - case 0x44: + case OpcodeDecoder::GX_CMD_UNKNOWN_METRICS: case OpcodeDecoder::GX_CMD_INVL_VC: break; diff --git a/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp b/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp index e099064531..8e806bef6f 100644 --- a/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp +++ b/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp @@ -211,8 +211,8 @@ void FIFOAnalyzer::UpdateDetails() new_label = QStringLiteral("NOP"); break; - case 0x44: - new_label = QStringLiteral("0x44"); + case OpcodeDecoder::GX_CMD_UNKNOWN_METRICS: + new_label = QStringLiteral("GX_CMD_UNKNOWN_METRICS"); break; case OpcodeDecoder::GX_CMD_INVL_VC: