From 5513de93e5d98a677503638f69223923f50b1621 Mon Sep 17 00:00:00 2001 From: uncavo-hdmi Date: Tue, 4 Feb 2025 11:50:08 +0100 Subject: [PATCH] code clean up; fix not loading EnableAutoAssign.Value from config file on startup --- src/Ryujinx/AutoAssignController.cs | 3 --- .../Utilities/Configuration/ConfigurationState.Migration.cs | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Ryujinx/AutoAssignController.cs b/src/Ryujinx/AutoAssignController.cs index 167a46995..06c636dc2 100644 --- a/src/Ryujinx/AutoAssignController.cs +++ b/src/Ryujinx/AutoAssignController.cs @@ -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 GetOrderedConfig(List controllers, List oldConfig) { - // Dictionary to store assigned PlayerIndexes Dictionary playerIndexMap = new(); // Convert oldConfig into a dictionary for quick lookup by controller Id diff --git a/src/Ryujinx/Utilities/Configuration/ConfigurationState.Migration.cs b/src/Ryujinx/Utilities/Configuration/ConfigurationState.Migration.cs index 3ccac2647..5df0a01bf 100644 --- a/src/Ryujinx/Utilities/Configuration/ConfigurationState.Migration.cs +++ b/src/Ryujinx/Utilities/Configuration/ConfigurationState.Migration.cs @@ -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 ?? [];