Skip to content

Commit

Permalink
misc: chore: null-coalesce led rainbow checking in headless
Browse files Browse the repository at this point in the history
  • Loading branch information
GreemDev committed Feb 17, 2025
1 parent 12f0dbc commit 52b0b45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Ryujinx/Headless/HeadlessRyujinx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ static void Load(string[] originalArgs, Options option)

DriverUtilities.InitDriverConfig(option.BackendThreading == BackendThreading.Off);

if (_inputConfiguration.OfType<StandardControllerInputConfig>().Any(ic => ic.Led.UseRainbow))
if (_inputConfiguration.OfType<StandardControllerInputConfig>()
.Any(ic => ic?.Led?.UseRainbow ?? false))
Rainbow.Enable();

while (true)
Expand Down

0 comments on commit 52b0b45

Please sign in to comment.