mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Fix GC adapter not being detected when you enable controller in settings
GCAdapter::UseAdapter() reads s_is_adapter_wanted, which gets initialized by config_guard.~ConfigChangeCallbackGuard(). So we must wait until after destroying the config guard to know whether we have any controllers set to GC Adapter.
This commit is contained in:
@ -198,12 +198,11 @@ void GamecubeControllersWidget::SaveSettings()
|
|||||||
static_cast<s32>(i));
|
static_cast<s32>(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (GCAdapter::UseAdapter())
|
if (GCAdapter::UseAdapter())
|
||||||
GCAdapter::StartScanThread();
|
GCAdapter::StartScanThread();
|
||||||
else
|
else
|
||||||
GCAdapter::StopScanThread();
|
GCAdapter::StopScanThread();
|
||||||
}
|
|
||||||
|
|
||||||
SConfig::GetInstance().SaveSettings();
|
SConfig::GetInstance().SaveSettings();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user