diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-07-27 15:27:00 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-07-30 08:15:53 +0200 |
commit | 21ff0a3d6ef81f72319ad3e0091d9d5ab2a4ff2b (patch) | |
tree | bd935b8111fee9cea021f21b2c5d7e289fc33755 /src/core/hle/service | |
parent | Merge pull request #6767 from ReinUsesLisp/fold-float-pack (diff) | |
download | yuzu-21ff0a3d6ef81f72319ad3e0091d9d5ab2a4ff2b.tar yuzu-21ff0a3d6ef81f72319ad3e0091d9d5ab2a4ff2b.tar.gz yuzu-21ff0a3d6ef81f72319ad3e0091d9d5ab2a4ff2b.tar.bz2 yuzu-21ff0a3d6ef81f72319ad3e0091d9d5ab2a4ff2b.tar.lz yuzu-21ff0a3d6ef81f72319ad3e0091d9d5ab2a4ff2b.tar.xz yuzu-21ff0a3d6ef81f72319ad3e0091d9d5ab2a4ff2b.tar.zst yuzu-21ff0a3d6ef81f72319ad3e0091d9d5ab2a4ff2b.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/ns/language.cpp | 1 | ||||
-rw-r--r-- | src/core/hle/service/set/set.cpp | 6 | ||||
-rw-r--r-- | src/core/hle/service/set/set.h | 1 |
3 files changed, 6 insertions, 2 deletions
diff --git a/src/core/hle/service/ns/language.cpp b/src/core/hle/service/ns/language.cpp index 54b644830..7d9e4a20b 100644 --- a/src/core/hle/service/ns/language.cpp +++ b/src/core/hle/service/ns/language.cpp @@ -339,6 +339,7 @@ std::optional<ApplicationLanguage> ConvertToApplicationLanguage( case Set::LanguageCode::FR_CA: return ApplicationLanguage::CanadianFrench; case Set::LanguageCode::PT: + case Set::LanguageCode::PT_BR: return ApplicationLanguage::Portuguese; case Set::LanguageCode::RU: return ApplicationLanguage::Russian; diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cpp index 522a604a5..aca7f5632 100644 --- a/src/core/hle/service/set/set.cpp +++ b/src/core/hle/service/set/set.cpp @@ -12,7 +12,7 @@ namespace Service::Set { namespace { -constexpr std::array<LanguageCode, 17> available_language_codes = {{ +constexpr std::array<LanguageCode, 18> available_language_codes = {{ LanguageCode::JA, LanguageCode::EN_US, LanguageCode::FR, @@ -30,6 +30,7 @@ constexpr std::array<LanguageCode, 17> available_language_codes = {{ LanguageCode::ES_419, LanguageCode::ZH_HANS, LanguageCode::ZH_HANT, + LanguageCode::PT_BR, }}; enum class KeyboardLayout : u64 { @@ -50,7 +51,7 @@ enum class KeyboardLayout : u64 { ChineseTraditional = 14, }; -constexpr std::array<std::pair<LanguageCode, KeyboardLayout>, 17> language_to_layout{{ +constexpr std::array<std::pair<LanguageCode, KeyboardLayout>, 18> language_to_layout{{ {LanguageCode::JA, KeyboardLayout::Japanese}, {LanguageCode::EN_US, KeyboardLayout::EnglishUs}, {LanguageCode::FR, KeyboardLayout::French}, @@ -68,6 +69,7 @@ constexpr std::array<std::pair<LanguageCode, KeyboardLayout>, 17> language_to_la {LanguageCode::ES_419, KeyboardLayout::SpanishLatin}, {LanguageCode::ZH_HANS, KeyboardLayout::ChineseSimplified}, {LanguageCode::ZH_HANT, KeyboardLayout::ChineseTraditional}, + {LanguageCode::PT_BR, KeyboardLayout::Portuguese}, }}; constexpr std::size_t pre4_0_0_max_entries = 15; diff --git a/src/core/hle/service/set/set.h b/src/core/hle/service/set/set.h index d5bd7828d..acabebeaa 100644 --- a/src/core/hle/service/set/set.h +++ b/src/core/hle/service/set/set.h @@ -31,6 +31,7 @@ enum class LanguageCode : u64 { ES_419 = 0x00003931342D7365, ZH_HANS = 0x00736E61482D687A, ZH_HANT = 0x00746E61482D687A, + PT_BR = 0x00000052422D7470, }; LanguageCode GetLanguageCodeFromIndex(std::size_t idx); |