diff options
author | german77 <juangerman-13@hotmail.com> | 2024-02-12 07:32:26 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-14 00:21:52 +0100 |
commit | 75bfbadb23e1932aba8c3e5710a3bfa3b833b5f7 (patch) | |
tree | 78442e203e77440591496711e5c481231bd2044b /src/core/hle/service/set/settings_server.h | |
parent | Merge pull request #12756 from liamwhite/applet-multiprocess-hwc (diff) | |
download | yuzu-75bfbadb23e1932aba8c3e5710a3bfa3b833b5f7.tar yuzu-75bfbadb23e1932aba8c3e5710a3bfa3b833b5f7.tar.gz yuzu-75bfbadb23e1932aba8c3e5710a3bfa3b833b5f7.tar.bz2 yuzu-75bfbadb23e1932aba8c3e5710a3bfa3b833b5f7.tar.lz yuzu-75bfbadb23e1932aba8c3e5710a3bfa3b833b5f7.tar.xz yuzu-75bfbadb23e1932aba8c3e5710a3bfa3b833b5f7.tar.zst yuzu-75bfbadb23e1932aba8c3e5710a3bfa3b833b5f7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/set/settings_server.h | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/src/core/hle/service/set/settings_server.h b/src/core/hle/service/set/settings_server.h index 8304e8424..a39971fe9 100644 --- a/src/core/hle/service/set/settings_server.h +++ b/src/core/hle/service/set/settings_server.h @@ -3,6 +3,7 @@ #pragma once +#include "core/hle/service/cmif_types.h" #include "core/hle/service/service.h" #include "core/hle/service/set/settings_types.h" @@ -11,6 +12,7 @@ class System; } namespace Service::Set { +using KeyCodeMap = std::array<u8, 0x1000>; LanguageCode GetLanguageCodeFromIndex(std::size_t idx); @@ -20,17 +22,30 @@ public: ~ISettingsServer() override; private: - void GetLanguageCode(HLERequestContext& ctx); - void GetAvailableLanguageCodes(HLERequestContext& ctx); - void MakeLanguageCode(HLERequestContext& ctx); - void GetAvailableLanguageCodes2(HLERequestContext& ctx); - void GetAvailableLanguageCodeCount(HLERequestContext& ctx); - void GetAvailableLanguageCodeCount2(HLERequestContext& ctx); - void GetQuestFlag(HLERequestContext& ctx); - void GetRegionCode(HLERequestContext& ctx); - void GetKeyCodeMap(HLERequestContext& ctx); - void GetKeyCodeMap2(HLERequestContext& ctx); - void GetDeviceNickName(HLERequestContext& ctx); + Result GetLanguageCode(Out<LanguageCode> out_language_code); + + Result GetAvailableLanguageCodes(Out<s32> out_count, + OutArray<LanguageCode, BufferAttr_HipcPointer> language_codes); + + Result MakeLanguageCode(Out<LanguageCode> out_language_code, Language language); + + Result GetAvailableLanguageCodeCount(Out<s32> out_count); + + Result GetRegionCode(Out<SystemRegionCode> out_region_code); + + Result GetAvailableLanguageCodes2( + Out<s32> out_count, OutArray<LanguageCode, BufferAttr_HipcMapAlias> language_codes); + + Result GetAvailableLanguageCodeCount2(Out<s32> out_count); + + Result GetKeyCodeMap(OutLargeData<KeyCodeMap, BufferAttr_HipcMapAlias> out_key_code_map); + + Result GetQuestFlag(Out<bool> out_quest_flag); + + Result GetKeyCodeMap2(OutLargeData<KeyCodeMap, BufferAttr_HipcMapAlias> out_key_code_map); + + Result GetDeviceNickName( + OutLargeData<std::array<u8, 0x80>, BufferAttr_HipcMapAlias> out_device_name); }; } // namespace Service::Set |