mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-08-30 07:25:05 +00:00
fix incorrect ReloadConfiguration placement
This commit is contained in:
parent
6ecdf690be
commit
f024c8a695
1 changed files with 2 additions and 1 deletions
|
|
@ -52,6 +52,8 @@ namespace Ryujinx.Ava.Input
|
||||||
List<InputConfig> newConfig = ControllerAssignmentManager.GetConfiguredControllers(
|
List<InputConfig> newConfig = ControllerAssignmentManager.GetConfiguredControllers(
|
||||||
controllers, oldConfig, out bool hasNewControllersConnected);
|
controllers, oldConfig, out bool hasNewControllersConnected);
|
||||||
|
|
||||||
|
_viewModel.AppHost?.NpadManager.ReloadConfiguration(newConfig, _configurationState.Hid.EnableKeyboard, _configurationState.Hid.EnableMouse);
|
||||||
|
|
||||||
if (!hasNewControllersConnected)
|
if (!hasNewControllersConnected)
|
||||||
{
|
{
|
||||||
// there is no *new* controller, we must switch the order of the controllers in
|
// 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);
|
newConfig = ControllerAssignmentManager.ReorderControllers(newConfig, oldConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
_viewModel.AppHost?.NpadManager.ReloadConfiguration(newConfig, _configurationState.Hid.EnableKeyboard, _configurationState.Hid.EnableMouse);
|
|
||||||
_configurationState.Hid.InputConfig.Value = newConfig;
|
_configurationState.Hid.InputConfig.Value = newConfig;
|
||||||
|
|
||||||
// we want to save the configuration only if a *new* controller was connected
|
// we want to save the configuration only if a *new* controller was connected
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue