Core: SetOnStoppedCallback -> SetOnStateChangedCallback

This commit is contained in:
Michael M
2017-09-04 10:57:42 -07:00
parent 22a9a08b24
commit 8e805dcbf4
5 changed files with 25 additions and 11 deletions

View File

@ -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);
}