summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/debugger/registers.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-12-30 00:03:08 +0100
committerLioncash <mathew1800@gmail.com>2015-12-30 00:03:08 +0100
commitcee8df6ff018ea6a851f012fa1c0eea758c758b0 (patch)
tree8fa1c00d82331054c4c6d4d0a331faec196efff9 /src/citra_qt/debugger/registers.cpp
parentMerge pull request #1300 from Subv/arbitrateaddress (diff)
downloadyuzu-cee8df6ff018ea6a851f012fa1c0eea758c758b0.tar
yuzu-cee8df6ff018ea6a851f012fa1c0eea758c758b0.tar.gz
yuzu-cee8df6ff018ea6a851f012fa1c0eea758c758b0.tar.bz2
yuzu-cee8df6ff018ea6a851f012fa1c0eea758c758b0.tar.lz
yuzu-cee8df6ff018ea6a851f012fa1c0eea758c758b0.tar.xz
yuzu-cee8df6ff018ea6a851f012fa1c0eea758c758b0.tar.zst
yuzu-cee8df6ff018ea6a851f012fa1c0eea758c758b0.zip
Diffstat (limited to 'src/citra_qt/debugger/registers.cpp')
-rw-r--r--src/citra_qt/debugger/registers.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/citra_qt/debugger/registers.cpp b/src/citra_qt/debugger/registers.cpp
index 6100d67c5..1bd0bfebc 100644
--- a/src/citra_qt/debugger/registers.cpp
+++ b/src/citra_qt/debugger/registers.cpp
@@ -59,16 +59,14 @@ RegistersWidget::RegistersWidget(QWidget* parent) : QDockWidget(parent) {
}
void RegistersWidget::OnDebugModeEntered() {
- ARM_Interface* app_core = Core::g_app_core;
-
- if (app_core == nullptr)
+ if (!Core::g_app_core)
return;
for (int i = 0; i < core_registers->childCount(); ++i)
- core_registers->child(i)->setText(1, QString("0x%1").arg(app_core->GetReg(i), 8, 16, QLatin1Char('0')));
+ core_registers->child(i)->setText(1, QString("0x%1").arg(Core::g_app_core->GetReg(i), 8, 16, QLatin1Char('0')));
for (int i = 0; i < vfp_registers->childCount(); ++i)
- vfp_registers->child(i)->setText(1, QString("0x%1").arg(app_core->GetVFPReg(i), 8, 16, QLatin1Char('0')));
+ vfp_registers->child(i)->setText(1, QString("0x%1").arg(Core::g_app_core->GetVFPReg(i), 8, 16, QLatin1Char('0')));
UpdateCPSRValues();
UpdateVFPSystemRegisterValues();