summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/y2r_u.cpp
diff options
context:
space:
mode:
authorLectem <lectem@gmail.com>2016-12-30 15:54:40 +0100
committerLectem <lectem@gmail.com>2017-03-18 10:44:01 +0100
commitfb70c9683c088233810abe298d587eaf671f6041 (patch)
tree1d2720d2d362d7c6b5381c83f4f8df0aabee1bc7 /src/core/hle/service/y2r_u.cpp
parentrefactor APT service to use the new IPC helpers (diff)
downloadyuzu-fb70c9683c088233810abe298d587eaf671f6041.tar
yuzu-fb70c9683c088233810abe298d587eaf671f6041.tar.gz
yuzu-fb70c9683c088233810abe298d587eaf671f6041.tar.bz2
yuzu-fb70c9683c088233810abe298d587eaf671f6041.tar.lz
yuzu-fb70c9683c088233810abe298d587eaf671f6041.tar.xz
yuzu-fb70c9683c088233810abe298d587eaf671f6041.tar.zst
yuzu-fb70c9683c088233810abe298d587eaf671f6041.zip
Diffstat (limited to 'src/core/hle/service/y2r_u.cpp')
-rw-r--r--src/core/hle/service/y2r_u.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/hle/service/y2r_u.cpp b/src/core/hle/service/y2r_u.cpp
index 907d9c8fa..cfea62962 100644
--- a/src/core/hle/service/y2r_u.cpp
+++ b/src/core/hle/service/y2r_u.cpp
@@ -189,11 +189,9 @@ static void SetSpacialDithering(Interface* self) {
* 2 : u8, 0 = Disabled, 1 = Enabled
*/
static void GetSpacialDithering(Interface* self) {
- u32* cmd_buff = Kernel::GetCommandBuffer();
-
- cmd_buff[0] = IPC::MakeHeader(0xA, 2, 0);
- cmd_buff[1] = RESULT_SUCCESS.raw;
- cmd_buff[2] = spacial_dithering_enabled;
+ IPC::RequestBuilder rb(Kernel::GetCommandBuffer(), 0xA, 2, 0);
+ rb.Push(RESULT_SUCCESS);
+ rb.Push(bool(spacial_dithering_enabled));
LOG_WARNING(Service_Y2R, "(STUBBED) called");
}