mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Qt: Disable controller configuration while NetPlay is running
Doing pretty much anything in the controller config breaks NetPlay (desync and/or deadlock), as saving the settings reconfigures controller interfaces, which NetPlay doesn't expect.
This commit is contained in:
parent
1805f51d79
commit
577f6a5fb1
4 changed files with 11 additions and 1 deletions
|
@ -275,6 +275,8 @@ void MainWindow::InitCoreCallbacks()
|
|||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [=](Core::State state) {
|
||||
if (state == Core::State::Uninitialized)
|
||||
OnStopComplete();
|
||||
if (state != Core::State::Uninitialized && NetPlay::IsNetPlayRunning() && m_controllers_window)
|
||||
m_controllers_window->reject();
|
||||
|
||||
if (state == Core::State::Running && m_fullscreen_requested)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue