mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
VerifyWidget: Listen for Core::State OnEmulationStateChanged
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user