mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Core: SetOnStoppedCallback -> SetOnStateChangedCallback
This commit is contained in:
@ -121,7 +121,10 @@ void MainWindow::ShutdownControllers()
|
||||
|
||||
void MainWindow::InitCoreCallbacks()
|
||||
{
|
||||
Core::SetOnStoppedCallback([this] { emit EmulationStopped(); });
|
||||
Core::SetOnStateChangedCallback([=](Core::State state) {
|
||||
if (state == Core::State::Uninitialized)
|
||||
emit EmulationStopped();
|
||||
});
|
||||
installEventFilter(this);
|
||||
m_render_widget->installEventFilter(this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user