fix incorrect ReloadConfiguration placement

This commit is contained in:
uncavo-hdmi 2025-02-28 17:16:55 +01:00
parent 6ecdf690be
commit f024c8a695

View File

@ -52,6 +52,8 @@ namespace Ryujinx.Ava.Input
List<InputConfig> newConfig = ControllerAssignmentManager.GetConfiguredControllers(
controllers, oldConfig, out bool hasNewControllersConnected);
_viewModel.AppHost?.NpadManager.ReloadConfiguration(newConfig, _configurationState.Hid.EnableKeyboard, _configurationState.Hid.EnableMouse);
if (!hasNewControllersConnected)
{
// there is no *new* controller, we must switch the order of the controllers in
@ -60,7 +62,6 @@ namespace Ryujinx.Ava.Input
newConfig = ControllerAssignmentManager.ReorderControllers(newConfig, oldConfig);
}
_viewModel.AppHost?.NpadManager.ReloadConfiguration(newConfig, _configurationState.Hid.EnableKeyboard, _configurationState.Hid.EnableMouse);
_configurationState.Hid.InputConfig.Value = newConfig;
// we want to save the configuration only if a *new* controller was connected