mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-08-30 07:25:05 +00:00
simplified logic
This commit is contained in:
parent
cc905280cd
commit
55f3a4b7ff
1 changed files with 10 additions and 8 deletions
|
|
@ -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…
Reference in a new issue