mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-22 17:37:12 +02:00
Parse UI enum directly
This commit is contained in:
parent
81b454282a
commit
fbb2f4bde0
1 changed files with 4 additions and 4 deletions
|
@ -282,16 +282,16 @@ namespace Ryujinx.Ava
|
|||
|
||||
// Check if region was overridden.
|
||||
if (CommandLineState.OverrideSystemRegion is not null)
|
||||
if (Enum.TryParse(CommandLineState.OverrideSystemRegion, true, out HLE.HOS.SystemState.RegionCode result))
|
||||
if (Enum.TryParse(CommandLineState.OverrideSystemRegion, true, out Region result))
|
||||
{
|
||||
ConfigurationState.Instance.System.Region.Value = result.ToUI();
|
||||
ConfigurationState.Instance.System.Region.Value = result;
|
||||
}
|
||||
|
||||
//Check if language was overridden.
|
||||
if (CommandLineState.OverrideSystemLanguage is not null)
|
||||
if (Enum.TryParse(CommandLineState.OverrideSystemLanguage, true, out HLE.HOS.SystemState.SystemLanguage result))
|
||||
if (Enum.TryParse(CommandLineState.OverrideSystemLanguage, true, out Language result))
|
||||
{
|
||||
ConfigurationState.Instance.System.Language.Value = result.ToUI();
|
||||
ConfigurationState.Instance.System.Language.Value = result;
|
||||
}
|
||||
|
||||
// Check if hardware-acceleration was overridden.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue