From 7fba9c7224d6a2bd358777e8854fa51232b54017 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 23 May 2019 01:14:11 -0700 Subject: clang-format fixes --- src/core/hle/service/ns/ns_language.h | 57 ++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 28 deletions(-) (limited to 'src/core/hle/service/ns/ns_language.h') diff --git a/src/core/hle/service/ns/ns_language.h b/src/core/hle/service/ns/ns_language.h index 8c3ec4449..55d7b0bd2 100644 --- a/src/core/hle/service/ns/ns_language.h +++ b/src/core/hle/service/ns/ns_language.h @@ -9,33 +9,34 @@ #include "core/hle/service/set/set.h" namespace Service::NS { - /// This is nn::ns::detail::ApplicationLanguage - enum class ApplicationLanguage : u8 { - AmericanEnglish = 0, - BritishEnglish, - Japanese, - French, - German, - LatinAmericanSpanish, - Spanish, - Italian, - Dutch, - CanadianFrench, - Portuguese, - Russian, - Korean, - TraditionalChinese, - SimplifiedChinese, - Count - }; - using ApplicationLanguagePriorityList = const std::array(ApplicationLanguage::Count)>; +/// This is nn::ns::detail::ApplicationLanguage +enum class ApplicationLanguage : u8 { + AmericanEnglish = 0, + BritishEnglish, + Japanese, + French, + German, + LatinAmericanSpanish, + Spanish, + Italian, + Dutch, + CanadianFrench, + Portuguese, + Russian, + Korean, + TraditionalChinese, + SimplifiedChinese, + Count +}; +using ApplicationLanguagePriorityList = + const std::array(ApplicationLanguage::Count)>; - constexpr u32 GetSupportedLanguageFlag(const ApplicationLanguage lang) { - return 1u << static_cast(lang); - } +constexpr u32 GetSupportedLanguageFlag(const ApplicationLanguage lang) { + return 1u << static_cast(lang); +} - - const ApplicationLanguagePriorityList* GetApplicationLanguagePriorityList(ApplicationLanguage lang); - std::optional ConvertToApplicationLanguage(Service::Set::LanguageCode language_code); - std::optional ConvertToLanguageCode(ApplicationLanguage lang); -} \ No newline at end of file +const ApplicationLanguagePriorityList* GetApplicationLanguagePriorityList(ApplicationLanguage lang); +std::optional ConvertToApplicationLanguage( + Service::Set::LanguageCode language_code); +std::optional ConvertToLanguageCode(ApplicationLanguage lang); +} // namespace Service::NS \ No newline at end of file -- cgit v1.2.3