code clean up; fix not loading EnableAutoAssign.Value from config file on startup

This commit is contained in:
uncavo-hdmi 2025-02-04 11:50:08 +01:00
parent 9cccaac9d3
commit 5513de93e5
2 changed files with 1 additions and 3 deletions

View File

@ -22,8 +22,6 @@ namespace Ryujinx.Ava
private readonly MainWindowViewModel _viewModel;
private readonly ConfigurationState _configurationState;
private readonly IGamepad[] _controllers;
public AutoAssignController(InputManager inputManager, MainWindowViewModel mainWindowViewModel)
{
_inputManager = inputManager;
@ -74,7 +72,6 @@ namespace Ryujinx.Ava
private List<InputConfig> GetOrderedConfig(List<IGamepad> controllers, List<InputConfig> oldConfig)
{
// Dictionary to store assigned PlayerIndexes
Dictionary<int, InputConfig> playerIndexMap = new();
// Convert oldConfig into a dictionary for quick lookup by controller Id

View File

@ -138,6 +138,7 @@ namespace Ryujinx.Ava.Utilities.Configuration
Hid.EnableKeyboard.Value = cff.EnableKeyboard;
Hid.EnableMouse.Value = cff.EnableMouse;
Hid.EnableAutoAssign.Value = cff.EnableAutoAssign;
Hid.Hotkeys.Value = cff.Hotkeys;
Hid.InputConfig.Value = cff.InputConfig ?? [];