mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-06 03:08:56 +02:00
misc: chore: Merge into pattern
This commit is contained in:
@@ -1184,7 +1184,7 @@ namespace Ryujinx.UI.App.Common
|
||||
|
||||
using FileStream file = new(applicationPath ?? string.Empty, FileMode.Open, FileAccess.Read);
|
||||
|
||||
if (extension == ".nsp" || extension == ".pfs0" || extension == ".xci")
|
||||
if (extension is ".nsp" or ".pfs0" or ".xci")
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -1026,7 +1026,7 @@ namespace Ryujinx.UI.Common.Configuration
|
||||
{
|
||||
bool configurationFileUpdated = false;
|
||||
|
||||
if (configurationFileFormat.Version < 0 || configurationFileFormat.Version > ConfigurationFileFormat.CurrentVersion)
|
||||
if (configurationFileFormat.Version is < 0 or > ConfigurationFileFormat.CurrentVersion)
|
||||
{
|
||||
Ryujinx.Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Unsupported configuration version {configurationFileFormat.Version}, loading default.");
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Ryujinx.Common.Utilities;
|
||||
using Ryujinx.HLE.HOS.SystemState;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Ryujinx.UI.Common.Configuration.System
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace Ryujinx.UI.Common.Helper
|
||||
string baseApplicationExtension = Path.GetExtension(baseApplicationPath).ToLowerInvariant();
|
||||
|
||||
// NOTE: We don't force homebrew developers to install a system firmware.
|
||||
if (baseApplicationExtension == ".nro" || baseApplicationExtension == ".nso")
|
||||
if (baseApplicationExtension is ".nro" or ".nso")
|
||||
{
|
||||
error = UserError.Success;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user