mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-02-25 18:21:08 +00:00
As per the remark XMLdoc on the type: Get rid of this converter if dotnet supports similar functionality out of the box.
42 lines
884 B
C#
42 lines
884 B
C#
using Ryujinx.HLE.HOS.SystemState;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Ryujinx.Ava.Systems.Configuration.System
|
|
{
|
|
[JsonConverter(typeof(JsonStringEnumConverter<Language>))]
|
|
public enum Language
|
|
{
|
|
Japanese,
|
|
AmericanEnglish,
|
|
French,
|
|
German,
|
|
Italian,
|
|
Spanish,
|
|
Chinese,
|
|
Korean,
|
|
Dutch,
|
|
Portuguese,
|
|
Russian,
|
|
Taiwanese,
|
|
BritishEnglish,
|
|
CanadianFrench,
|
|
LatinAmericanSpanish,
|
|
SimplifiedChinese,
|
|
TraditionalChinese,
|
|
BrazilianPortuguese,
|
|
}
|
|
|
|
public static class LanguageEnumHelper
|
|
{
|
|
extension(SystemLanguage hle)
|
|
{
|
|
public Language Ui => (Language)hle;
|
|
}
|
|
|
|
extension(Language ui)
|
|
{
|
|
public SystemLanguage Horizon => (SystemLanguage)ui;
|
|
}
|
|
}
|
|
}
|