VerifyWidget: Listen for Core::State OnEmulationStateChanged

This commit is contained in:
mitaclaw
2024-04-08 22:55:20 -07:00
parent 69aca2fbfc
commit fe8f836668
2 changed files with 8 additions and 6 deletions

View File

@ -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