diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-06-22 03:47:55 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-06-23 00:24:19 +0200 |
commit | 81488d7a6ab09ff980a9325901113449800f5146 (patch) | |
tree | 12eeb017c1e82984e02b5f0a72aeb6584155d065 /src/core/hle/service | |
parent | Merge pull request #860 from yuriks/y2r-color (diff) | |
download | yuzu-81488d7a6ab09ff980a9325901113449800f5146.tar yuzu-81488d7a6ab09ff980a9325901113449800f5146.tar.gz yuzu-81488d7a6ab09ff980a9325901113449800f5146.tar.bz2 yuzu-81488d7a6ab09ff980a9325901113449800f5146.tar.lz yuzu-81488d7a6ab09ff980a9325901113449800f5146.tar.xz yuzu-81488d7a6ab09ff980a9325901113449800f5146.tar.zst yuzu-81488d7a6ab09ff980a9325901113449800f5146.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/apt/apt.cpp | 6 | ||||
-rw-r--r-- | src/core/hle/service/y2r_u.cpp | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/core/hle/service/apt/apt.cpp b/src/core/hle/service/apt/apt.cpp index 5d14f393d..b454a2709 100644 --- a/src/core/hle/service/apt/apt.cpp +++ b/src/core/hle/service/apt/apt.cpp @@ -45,7 +45,7 @@ void Initialize(Service::Interface* self) { u32 app_id = cmd_buff[1]; u32 flags = cmd_buff[2]; - cmd_buff[2] = 0x04000000; // According to 3dbrew, this value should be 0x04000000 + cmd_buff[2] = IPC::MoveHandleDesc(2); cmd_buff[3] = Kernel::g_handle_table.Create(notification_event).MoveFrom(); cmd_buff[4] = Kernel::g_handle_table.Create(start_event).MoveFrom(); @@ -70,11 +70,13 @@ void GetSharedFont(Service::Interface* self) { // an easy way to do this, but the copy should be sufficient for now. memcpy(Memory::GetPointer(SHARED_FONT_VADDR), shared_font.data(), shared_font.size()); - cmd_buff[0] = 0x00440082; + cmd_buff[0] = IPC::MakeHeader(0x44, 2, 2); cmd_buff[1] = RESULT_SUCCESS.raw; // No error cmd_buff[2] = SHARED_FONT_VADDR; + cmd_buff[3] = IPC::MoveHandleDesc(); cmd_buff[4] = Kernel::g_handle_table.Create(shared_font_mem).MoveFrom(); } else { + cmd_buff[0] = IPC::MakeHeader(0x44, 1, 0); cmd_buff[1] = -1; // Generic error (not really possible to verify this on hardware) LOG_ERROR(Kernel_SVC, "called, but %s has not been loaded!", SHARED_FONT); } diff --git a/src/core/hle/service/y2r_u.cpp b/src/core/hle/service/y2r_u.cpp index 17cb4f0f0..ac1967da8 100644 --- a/src/core/hle/service/y2r_u.cpp +++ b/src/core/hle/service/y2r_u.cpp @@ -121,7 +121,7 @@ static void SetBlockAlignment(Service::Interface* self) { static void SetTransferEndInterrupt(Service::Interface* self) { u32* cmd_buff = Kernel::GetCommandBuffer(); - cmd_buff[0] = 0x000D0040; + cmd_buff[0] = IPC::MakeHeader(0xD, 1, 0); cmd_buff[1] = RESULT_SUCCESS.raw; LOG_DEBUG(Service_Y2R, "(STUBBED) called"); } @@ -279,7 +279,7 @@ static void StartConversion(Service::Interface* self) { static void StopConversion(Service::Interface* self) { u32* cmd_buff = Kernel::GetCommandBuffer(); - cmd_buff[0] = 0x00270040; + cmd_buff[0] = IPC::MakeHeader(0x27, 1, 0); cmd_buff[1] = RESULT_SUCCESS.raw; LOG_DEBUG(Service_Y2R, "called"); } @@ -328,7 +328,7 @@ static void SetConversionParams(Service::Interface* self) { conversion.alpha = params->alpha; cleanup: - cmd_buff[0] = 0x00290040; // TODO verify + cmd_buff[0] = IPC::MakeHeader(0x29, 1, 0); cmd_buff[1] = result.raw; } @@ -360,7 +360,7 @@ static void DriverInitialize(Service::Interface* self) { completion_event->Clear(); - cmd_buff[0] = 0x002B0040; + cmd_buff[0] = IPC::MakeHeader(0x2B, 1, 0); cmd_buff[1] = RESULT_SUCCESS.raw; LOG_DEBUG(Service_Y2R, "called"); } @@ -368,7 +368,7 @@ static void DriverInitialize(Service::Interface* self) { static void DriverFinalize(Service::Interface* self) { u32* cmd_buff = Kernel::GetCommandBuffer(); - cmd_buff[0] = 0x002C0040; + cmd_buff[0] = IPC::MakeHeader(0x2C, 1, 0); cmd_buff[1] = RESULT_SUCCESS.raw; LOG_DEBUG(Service_Y2R, "called"); } |