simplified logic
This commit is contained in:
parent
cc905280cd
commit
55f3a4b7ff
@ -138,9 +138,12 @@ namespace Ryujinx.Ava.Input
|
||||
{
|
||||
orderedConfigs[index].PlayerIndex = (PlayerIndex)index;
|
||||
|
||||
if (orderedConfigs[index] is StandardControllerInputConfig standardConfig)
|
||||
if (orderedConfigs[index] is not StandardControllerInputConfig standardConfig ||
|
||||
standardConfig.Led.UseRainbow)
|
||||
{
|
||||
if(standardConfig.Led.UseRainbow) continue;
|
||||
continue;
|
||||
}
|
||||
|
||||
Logger.Warning?.Print(LogClass.Application, $"Setting color for Player{index + 1}");
|
||||
standardConfig.Led = new LedConfigController
|
||||
{
|
||||
@ -149,7 +152,6 @@ namespace Ryujinx.Ava.Input
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static InputConfig CreateConfigFromController(IGamepad controller)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user