Merge pull request #12015 from nyanpasu64/gc-adapter-sleep-detach

Fix GC Adapter breaking and burning a full CPU core after sleep-wake on Linux
This commit is contained in:
Admiral H. Curtiss
2023-07-22 03:38:45 +02:00
committed by GitHub
2 changed files with 23 additions and 13 deletions

View File

@ -198,12 +198,11 @@ void GamecubeControllersWidget::SaveSettings()
static_cast<s32>(i));
}
}
if (GCAdapter::UseAdapter())
GCAdapter::StartScanThread();
else
GCAdapter::StopScanThread();
}
if (GCAdapter::UseAdapter())
GCAdapter::StartScanThread();
else
GCAdapter::StopScanThread();
SConfig::GetInstance().SaveSettings();
}