mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-24 06:24:14 +00:00
AppHost: Prevent null CycleControllers crash
This commit is contained in:
parent
e911876f76
commit
e3ffbd9ee5
1 changed files with 1 additions and 1 deletions
|
@ -1288,7 +1288,7 @@ namespace Ryujinx.Ava
|
||||||
state = KeyboardHotkeyState.VolumeDown;
|
state = KeyboardHotkeyState.VolumeDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var cycle in ConfigurationState.Instance.Hid.Hotkeys.Value.CycleControllers.Select((value, index) => (value, index)))
|
foreach (var cycle in ConfigurationState.Instance.Hid.Hotkeys.Value.CycleControllers?.Select((value, index) => (value, index)) ?? [])
|
||||||
{
|
{
|
||||||
if (_keyboardInterface.IsPressed((Key)cycle.value))
|
if (_keyboardInterface.IsPressed((Key)cycle.value))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue