misc: some cleanups and fix compile warnings

This commit is contained in:
Evan Husted 2025-01-01 02:14:59 -06:00
parent 391f57bdd2
commit 88d11d3d8d
4 changed files with 13 additions and 11 deletions

View file

@ -171,13 +171,11 @@ namespace Ryujinx.Headless
{ PlayerIndex.Player8, (nameof(InputId8), nameof(InputProfile8Name)) }
};
foreach ((PlayerIndex playerIndex, (string id, string profile)) in indicesToProperties)
foreach ((PlayerIndex playerIndex, _) in indicesToProperties
.Where(it => NeedsOverride(it.Value.InputId) && NeedsOverride(it.Value.InputProfileName)))
{
if (NeedsOverride(id) && NeedsOverride(profile))
{
configurationState.Hid.InputConfig.Value.FindFirst(x => x.PlayerIndex == playerIndex)
.IfPresent(ic => InheritedInputConfigs[playerIndex] = ic);
}
configurationState.Hid.InputConfig.Value.FindFirst(x => x.PlayerIndex == playerIndex)
.IfPresent(ic => InheritedInputConfigs[playerIndex] = ic);
}
return;