mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-24 02:07:11 +02:00
misc: chore: make some cleaner extensions for converting to/from ui/hle enums
This commit is contained in:
parent
b0c0e8f7ad
commit
27cdf876a2
4 changed files with 27 additions and 7 deletions
|
@ -25,4 +25,13 @@ namespace Ryujinx.Ava.Systems.Configuration.System
|
|||
TraditionalChinese,
|
||||
BrazilianPortuguese,
|
||||
}
|
||||
|
||||
public static class LanguageEnumHelper
|
||||
{
|
||||
public static Language ToUI(this HLE.HOS.SystemState.SystemLanguage hleLanguage)
|
||||
=> (Language)hleLanguage;
|
||||
|
||||
public static HLE.HOS.SystemState.SystemLanguage ToHLE(this Language uiLanguage)
|
||||
=> (HLE.HOS.SystemState.SystemLanguage)uiLanguage;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue