misc: chore: Merge into pattern

This commit is contained in:
KeatonTheBot
2025-09-24 13:51:15 -05:00
parent 503dea74c2
commit fa682d406e
157 changed files with 470 additions and 546 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ namespace Ryujinx.Headless
InputConfig config;
if (inputProfileName == null || inputProfileName.Equals("default"))
if (inputProfileName is null or "default")
{
if (isKeyboard)
{
+1 -1
View File
@@ -84,7 +84,7 @@ namespace Ryujinx.Ava.Input
internal bool IsPressed(Key key)
{
if (key == Key.Unbound || key == Key.Unknown)
if (key is Key.Unbound or Key.Unknown)
{
return false;
}
+1 -1
View File
@@ -55,7 +55,7 @@ namespace Ryujinx.Ava.UI.Applet
return culture.TwoLetterISOLanguageName switch
{
"zh" => langCode == "zh-CN" || langCode == "zh-Hans" || langCode == "zh-SG"
"zh" => langCode is "zh-CN" or "zh-Hans" or "zh-SG"
? "Microsoft YaHei UI" // Simplified Chinese
: "Microsoft JhengHei UI", // Traditional Chinese
@@ -168,9 +168,7 @@ namespace Ryujinx.Ava.UI.ViewModels
get => _vSyncMode;
set
{
if (value == VSyncMode.Custom ||
value == VSyncMode.Switch ||
value == VSyncMode.Unbounded)
if (value is VSyncMode.Custom or VSyncMode.Switch or VSyncMode.Unbounded)
{
_vSyncMode = value;
OnPropertyChanged();