summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/VerifyWidget.cpp
diff options
context:
space:
mode:
authormitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-04-08 22:55:20 -0700
committermitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-04-09 12:13:02 -0700
commitfe8f836668c4a9df25e620543a4c1815b3ae720c (patch)
tree0f978d37ffb825d93f4597bc6b0774ff20bc2d8e /Source/Core/DolphinQt/Config/VerifyWidget.cpp
parent69aca2fbfc88d08a17d36c03d51dd698eb9cce1b (diff)
VerifyWidget: Listen for Core::State OnEmulationStateChanged
Diffstat (limited to 'Source/Core/DolphinQt/Config/VerifyWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/VerifyWidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/Config/VerifyWidget.cpp b/Source/Core/DolphinQt/Config/VerifyWidget.cpp
index 291ae0bb6c..2588682a1c 100644
--- a/Source/Core/DolphinQt/Config/VerifyWidget.cpp
+++ b/Source/Core/DolphinQt/Config/VerifyWidget.cpp
@@ -45,12 +45,12 @@ VerifyWidget::VerifyWidget(std::shared_ptr<DiscIO::Volume> volume) : m_volume(st
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this,
&VerifyWidget::OnEmulationStateChanged);
- OnEmulationStateChanged();
+ OnEmulationStateChanged(Core::GetState(Core::System::GetInstance()));
}
-void VerifyWidget::OnEmulationStateChanged()
+void VerifyWidget::OnEmulationStateChanged(Core::State state)
{
- const bool running = Core::GetState(Core::System::GetInstance()) != Core::State::Uninitialized;
+ const bool running = state != Core::State::Uninitialized;
// Verifying a Wii game while emulation is running doesn't work correctly
// due to verification of a Wii game creating an instance of IOS