Add missing language/region values to nn::erreula and nn::swkbd (#336)

* nn:erreula: add missing LangType values

* nn::swkbd: fix swapped LangType values and add missing RegionType values

* nn:swkbd: Add documentation about LanguageType
This commit is contained in:
Maschell
2023-11-26 17:03:55 +01:00
committed by GitHub
parent 9cb0dcdb03
commit 8cf1780417
2 changed files with 31 additions and 6 deletions

View File

@@ -41,9 +41,19 @@ enum class ErrorType
enum class LangType
{
Japanese = 0,
English = 1,
// TODO: More languages
Japanese = 0,
English = 1,
French = 2,
German = 3,
Italian = 4,
Spanish = 5,
SimplifiedChinese = 6,
Korean = 7,
Dutch = 8,
Portuguese = 9,
Russian = 10,
TraditionalChinese = 11,
Invalid = 12,
};
enum class RegionType

View File

@@ -44,20 +44,33 @@ enum class ControllerType
DrcGamepad = 4,
};
//! If the LanguageType and RegionType are not compatible, the LanguageType will be set to English, unless the RegionType is set to "Japan," in which case the LanguageType will be set to Japanese.
enum class LanguageType
{
//! Must be used in combination with RegionType::Japan
Japanese = 0,
//! Must be used in combination with RegionType::USA or RegionType::Europe
English = 1,
//! Must be used in combination with RegionType::USA or RegionType::Europe
French = 2,
//! Must be used in combination with RegionType::Europe
German = 3,
//! Must be used in combination with RegionType::Europe
Italian = 4,
//! Must be used in combination with RegionType::USA or RegionType::Europe
Spanish = 5,
TraditionalChinese = 6,
//! Must be used in combination with RegionType::China
SimplifiedChinese = 6,
//! Must be used in combination with RegionType::Korea
Korean = 7,
//! Must be used in combination with RegionType::Europe
Dutch = 8,
//! Must be used in combination with RegionType::USA or RegionType::Europe
Portuguese = 9,
//! Must be used in combination with RegionType::Europe
Russian = 10,
SimplifiedChinese = 11,
//! Must be used in combination with RegionType::Taiwan
TraditionalChinese = 11,
Invalid = 12,
};
@@ -66,7 +79,9 @@ enum class RegionType
Japan = 0,
USA = 1,
Europe = 2,
//! TODO: find more region types
China = 3,
Korea = 4,
Taiwan = 5,
};
enum class State