mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-27 01:37:11 +02:00
misc: Code cleanups.
This commit is contained in:
parent
a2cd3c2799
commit
7618ef134d
13 changed files with 45 additions and 113 deletions
|
@ -37,14 +37,9 @@ namespace Ryujinx.Ava.UI.Applet
|
|||
|
||||
public ControllerAppletDialog(MainWindow mainWindow, ControllerAppletUIArgs args)
|
||||
{
|
||||
if (args.PlayerCountMin == args.PlayerCountMax)
|
||||
{
|
||||
PlayerCount = args.PlayerCountMin.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
PlayerCount = $"{args.PlayerCountMin} - {args.PlayerCountMax}";
|
||||
}
|
||||
PlayerCount = args.PlayerCountMin == args.PlayerCountMax
|
||||
? args.PlayerCountMin.ToString()
|
||||
: $"{args.PlayerCountMin} - {args.PlayerCountMax}";
|
||||
|
||||
SupportsProController = (args.SupportedStyles & ControllerType.ProController) != 0;
|
||||
SupportsLeftJoycon = (args.SupportedStyles & ControllerType.JoyconLeft) != 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue