mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-08-30 07:25:05 +00:00
Some checks are pending
Canary release job / Create tag (push) Waiting to run
Canary release job / Release for linux-arm64 (push) Waiting to run
Canary release job / Release for linux-x64 (push) Waiting to run
Canary release job / Release for win-x64 (push) Waiting to run
Canary release job / Release MacOS universal (push) Waiting to run
26 lines
644 B
C#
26 lines
644 B
C#
using Ryujinx.Common.Utilities;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Ryujinx.Ava.Systems.Configuration.System
|
|
{
|
|
[JsonConverter(typeof(TypedStringEnumConverter<Region>))]
|
|
public enum Region
|
|
{
|
|
Japan,
|
|
USA,
|
|
Europe,
|
|
Australia,
|
|
China,
|
|
Korea,
|
|
Taiwan,
|
|
}
|
|
|
|
public static class RegionEnumHelper
|
|
{
|
|
public static Region ToUI(this HLE.HOS.SystemState.RegionCode hleRegion)
|
|
=> (Region)hleRegion;
|
|
|
|
public static HLE.HOS.SystemState.RegionCode ToHLE(this Region uiRegion)
|
|
=> (HLE.HOS.SystemState.RegionCode)uiRegion;
|
|
}
|
|
}
|