misc: chore: null-coalesce led rainbow checking in headless

This commit is contained in:
Evan Husted 2025-02-17 16:29:57 -06:00
parent 12f0dbcc70
commit 52b0b45d34

View File

@ -289,7 +289,8 @@ namespace Ryujinx.Headless
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)