mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-23 00:07:10 +02:00
misc: some cleanups and fix compile warnings
This commit is contained in:
parent
391f57bdd2
commit
88d11d3d8d
4 changed files with 13 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue