0
0
Fork 0

Copy the value of InputConfig to a new array before iterating (#1271)

This commit is contained in:
Xpl0itR 2020-06-22 21:19:30 +01:00 committed by GitHub
parent 96951b7d04
commit fcd187ce42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -395,7 +395,7 @@ namespace Ryujinx.Ui
List<GamepadInput> gamepadInputs = new List<GamepadInput>();
foreach (InputConfig inputConfig in ConfigurationState.Instance.Hid.InputConfig.Value)
foreach (InputConfig inputConfig in ConfigurationState.Instance.Hid.InputConfig.Value.ToArray())
{
ControllerKeys currentButton = 0;
JoystickPosition leftJoystick = new JoystickPosition();