summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/set/set.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-29 02:29:33 +0200
committerbunnei <bunneidev@gmail.com>2018-04-29 17:07:06 +0200
commit17b16cf6f6a9b6eb9c552837860c6e1b39986f95 (patch)
tree730897a94bfa1b136bf6d726a16e6a1bf787a254 /src/core/hle/service/set/set.cpp
parentMerge pull request #414 from lioncash/cruft (diff)
downloadyuzu-17b16cf6f6a9b6eb9c552837860c6e1b39986f95.tar
yuzu-17b16cf6f6a9b6eb9c552837860c6e1b39986f95.tar.gz
yuzu-17b16cf6f6a9b6eb9c552837860c6e1b39986f95.tar.bz2
yuzu-17b16cf6f6a9b6eb9c552837860c6e1b39986f95.tar.lz
yuzu-17b16cf6f6a9b6eb9c552837860c6e1b39986f95.tar.xz
yuzu-17b16cf6f6a9b6eb9c552837860c6e1b39986f95.tar.zst
yuzu-17b16cf6f6a9b6eb9c552837860c6e1b39986f95.zip
Diffstat (limited to 'src/core/hle/service/set/set.cpp')
-rw-r--r--src/core/hle/service/set/set.cpp30
1 files changed, 24 insertions, 6 deletions
diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cpp
index ece29aa70..f0572bed6 100644
--- a/src/core/hle/service/set/set.cpp
+++ b/src/core/hle/service/set/set.cpp
@@ -14,15 +14,33 @@ namespace Service::Set {
void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
u32 id = rp.Pop<u32>();
- constexpr std::array<u8, 13> lang_codes{};
-
- ctx.WriteBuffer(lang_codes.data(), lang_codes.size());
-
- IPC::ResponseBuilder rb{ctx, 2};
+ static constexpr std::array<LanguageCode, 17> available_language_codes = {{
+ LanguageCode::JA,
+ LanguageCode::EN_US,
+ LanguageCode::FR,
+ LanguageCode::DE,
+ LanguageCode::IT,
+ LanguageCode::ES,
+ LanguageCode::ZH_CN,
+ LanguageCode::KO,
+ LanguageCode::NL,
+ LanguageCode::PT,
+ LanguageCode::RU,
+ LanguageCode::ZH_TW,
+ LanguageCode::EN_GB,
+ LanguageCode::FR_CA,
+ LanguageCode::ES_419,
+ LanguageCode::ZH_HANS,
+ LanguageCode::ZH_HANT,
+ }};
+ ctx.WriteBuffer(available_language_codes.data(), available_language_codes.size());
+
+ IPC::ResponseBuilder rb{ctx, 4};
rb.Push(RESULT_SUCCESS);
+ rb.Push(static_cast<u64>(available_language_codes.size()));
- NGLOG_WARNING(Service_SET, "(STUBBED) called");
+ NGLOG_DEBUG(Service_SET, "called");
}
SET::SET() : ServiceFramework("set") {