mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 07:11:40 +00:00
VerifyWidget: Listen for Core::State OnEmulationStateChanged
This commit is contained in:
parent
69aca2fbfc
commit
fe8f836668
2 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue