diff options
| author | bunnei <bunneidev@gmail.com> | 2018-07-25 10:25:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-25 10:25:29 -0700 |
| commit | 5c42cadbc9e03f69b5544fedd152e646182b3af4 (patch) | |
| tree | 6bbb0c812f4d04105888c46f4bdbcdd5e55d334c /src/core/hle/service/set/set_sys.cpp | |
| parent | f445464baf0fade4c205f876f50c370796f19faf (diff) | |
| parent | 63c605c04af6f236cf13daf71cd6107b122820b5 (diff) | |
Merge pull request #800 from lioncash/set
set_sys: Implement SetColorSetId()
Diffstat (limited to 'src/core/hle/service/set/set_sys.cpp')
| -rw-r--r-- | src/core/hle/service/set/set_sys.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/core/hle/service/set/set_sys.cpp b/src/core/hle/service/set/set_sys.cpp index fa85277fe..41efca31c 100644 --- a/src/core/hle/service/set/set_sys.cpp +++ b/src/core/hle/service/set/set_sys.cpp @@ -10,13 +10,22 @@ namespace Service::Set { void SET_SYS::GetColorSetId(Kernel::HLERequestContext& ctx) { - IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); - rb.Push<u32>(0); + rb.PushEnum(color_set); - LOG_WARNING(Service_SET, "(STUBBED) called"); + LOG_DEBUG(Service_SET, "called"); +} + +void SET_SYS::SetColorSetId(Kernel::HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + color_set = rp.PopEnum<ColorSet>(); + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); + + LOG_DEBUG(Service_SET, "called"); } SET_SYS::SET_SYS() : ServiceFramework("set:sys") { @@ -44,7 +53,7 @@ SET_SYS::SET_SYS() : ServiceFramework("set:sys") { {21, nullptr, "GetEulaVersions"}, {22, nullptr, "SetEulaVersions"}, {23, &SET_SYS::GetColorSetId, "GetColorSetId"}, - {24, nullptr, "SetColorSetId"}, + {24, &SET_SYS::SetColorSetId, "SetColorSetId"}, {25, nullptr, "GetConsoleInformationUploadFlag"}, {26, nullptr, "SetConsoleInformationUploadFlag"}, {27, nullptr, "GetAutomaticApplicationDownloadFlag"}, @@ -172,4 +181,6 @@ SET_SYS::SET_SYS() : ServiceFramework("set:sys") { RegisterHandlers(functions); } +SET_SYS::~SET_SYS() = default; + } // namespace Service::Set |
