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

metal Canary-1.2.401
Evan Husted 2025-02-17 16:29:57 -06:00
parent 12f0dbcc70
commit 52b0b45d34
1 changed files with 2 additions and 1 deletions

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)