diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/ns/language.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/ns/ns_language.h | 42 |
2 files changed, 2 insertions, 42 deletions
diff --git a/src/core/hle/service/ns/language.cpp b/src/core/hle/service/ns/language.cpp index 29c4a820c..54b644830 100644 --- a/src/core/hle/service/ns/language.cpp +++ b/src/core/hle/service/ns/language.cpp | |||
| @@ -344,8 +344,10 @@ std::optional<ApplicationLanguage> ConvertToApplicationLanguage( | |||
| 344 | return ApplicationLanguage::Russian; | 344 | return ApplicationLanguage::Russian; |
| 345 | case Set::LanguageCode::KO: | 345 | case Set::LanguageCode::KO: |
| 346 | return ApplicationLanguage::Korean; | 346 | return ApplicationLanguage::Korean; |
| 347 | case Set::LanguageCode::ZH_TW: | ||
| 347 | case Set::LanguageCode::ZH_HANT: | 348 | case Set::LanguageCode::ZH_HANT: |
| 348 | return ApplicationLanguage::TraditionalChinese; | 349 | return ApplicationLanguage::TraditionalChinese; |
| 350 | case Set::LanguageCode::ZH_CN: | ||
| 349 | case Set::LanguageCode::ZH_HANS: | 351 | case Set::LanguageCode::ZH_HANS: |
| 350 | return ApplicationLanguage::SimplifiedChinese; | 352 | return ApplicationLanguage::SimplifiedChinese; |
| 351 | default: | 353 | default: |
diff --git a/src/core/hle/service/ns/ns_language.h b/src/core/hle/service/ns/ns_language.h deleted file mode 100644 index 59ac85a19..000000000 --- a/src/core/hle/service/ns/ns_language.h +++ /dev/null | |||
| @@ -1,42 +0,0 @@ | |||
| 1 | // Copyright 2019 yuzu emulator team | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | #include <optional> | ||
| 7 | #include <string> | ||
| 8 | #include "common/common_types.h" | ||
| 9 | #include "core/hle/service/set/set.h" | ||
| 10 | |||
| 11 | namespace Service::NS { | ||
| 12 | /// This is nn::ns::detail::ApplicationLanguage | ||
| 13 | enum class ApplicationLanguage : u8 { | ||
| 14 | AmericanEnglish = 0, | ||
| 15 | BritishEnglish, | ||
| 16 | Japanese, | ||
| 17 | French, | ||
| 18 | German, | ||
| 19 | LatinAmericanSpanish, | ||
| 20 | Spanish, | ||
| 21 | Italian, | ||
| 22 | Dutch, | ||
| 23 | CanadianFrench, | ||
| 24 | Portuguese, | ||
| 25 | Russian, | ||
| 26 | Korean, | ||
| 27 | TraditionalChinese, | ||
| 28 | SimplifiedChinese, | ||
| 29 | Count | ||
| 30 | }; | ||
| 31 | using ApplicationLanguagePriorityList = | ||
| 32 | const std::array<ApplicationLanguage, static_cast<std::size_t>(ApplicationLanguage::Count)>; | ||
| 33 | |||
| 34 | constexpr u32 GetSupportedLanguageFlag(const ApplicationLanguage lang) { | ||
| 35 | return 1U << static_cast<u32>(lang); | ||
| 36 | } | ||
| 37 | |||
| 38 | const ApplicationLanguagePriorityList* GetApplicationLanguagePriorityList(ApplicationLanguage lang); | ||
| 39 | std::optional<ApplicationLanguage> ConvertToApplicationLanguage( | ||
| 40 | Service::Set::LanguageCode language_code); | ||
| 41 | std::optional<Service::Set::LanguageCode> ConvertToLanguageCode(ApplicationLanguage lang); | ||
| 42 | } // namespace Service::NS \ No newline at end of file | ||