mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2026-05-06 04:48:54 +00:00
As per the remark XMLdoc on the type: Get rid of this converter if dotnet supports similar functionality out of the box.
30 lines
594 B
C#
30 lines
594 B
C#
using Ryujinx.HLE.HOS.SystemState;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Ryujinx.Ava.Systems.Configuration.System
|
|
{
|
|
[JsonConverter(typeof(JsonStringEnumConverter<Region>))]
|
|
public enum Region
|
|
{
|
|
Japan,
|
|
USA,
|
|
Europe,
|
|
Australia,
|
|
China,
|
|
Korea,
|
|
Taiwan,
|
|
}
|
|
|
|
public static class RegionEnumHelper
|
|
{
|
|
extension(RegionCode hle)
|
|
{
|
|
public Region Ui => (Region)hle;
|
|
}
|
|
|
|
extension(Region ui)
|
|
{
|
|
public RegionCode Horizon => (RegionCode)ui;
|
|
}
|
|
}
|
|
}
|