move push out of class body and add u8 u16 bool specializations
This commit is contained in:
parent
501e23ce59
commit
fb70c9683c
4 changed files with 114 additions and 55 deletions
|
@ -101,7 +101,7 @@ void CheckNew3DS(IPC::RequestBuilder& rb) {
|
|||
}
|
||||
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
rb.Push(u32(is_new_3ds ? 1 : 0));
|
||||
rb.Push(is_new_3ds);
|
||||
|
||||
LOG_WARNING(Service_PTM, "(STUBBED) called isNew3DS = 0x%08x", static_cast<u32>(is_new_3ds));
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue