diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-07-27 14:59:26 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-07-27 14:59:26 +0200 |
commit | a6359fe9ae451e5245b4ae7f98eed802de9ee281 (patch) | |
tree | 8ff24264a692ba499e1978788dfc853e25b3d8ce /src/core/hle | |
parent | service: ns: Map ZH_TW and ZH_CN to Traditional/Simplified Chinese (diff) | |
download | yuzu-a6359fe9ae451e5245b4ae7f98eed802de9ee281.tar yuzu-a6359fe9ae451e5245b4ae7f98eed802de9ee281.tar.gz yuzu-a6359fe9ae451e5245b4ae7f98eed802de9ee281.tar.bz2 yuzu-a6359fe9ae451e5245b4ae7f98eed802de9ee281.tar.lz yuzu-a6359fe9ae451e5245b4ae7f98eed802de9ee281.tar.xz yuzu-a6359fe9ae451e5245b4ae7f98eed802de9ee281.tar.zst yuzu-a6359fe9ae451e5245b4ae7f98eed802de9ee281.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/service/ns/ns_language.h | 42 |
1 files changed, 0 insertions, 42 deletions
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 @@ -// Copyright 2019 yuzu emulator team -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#pragma once -#include <optional> -#include <string> -#include "common/common_types.h" -#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, static_cast<std::size_t>(ApplicationLanguage::Count)>; - -constexpr u32 GetSupportedLanguageFlag(const ApplicationLanguage lang) { - return 1U << static_cast<u32>(lang); -} - -const ApplicationLanguagePriorityList* GetApplicationLanguagePriorityList(ApplicationLanguage lang); -std::optional<ApplicationLanguage> ConvertToApplicationLanguage( - Service::Set::LanguageCode language_code); -std::optional<Service::Set::LanguageCode> ConvertToLanguageCode(ApplicationLanguage lang); -} // namespace Service::NS
\ No newline at end of file |