From 3972d4ca8ba82a1e344e1255b0c113751d4b9f59 Mon Sep 17 00:00:00 2001 From: bunnei Date: Tue, 27 May 2014 23:56:08 -0400 Subject: APT_U: added stubbed function for APT_U::Enable, fixed some log messages to be more consistent --- src/core/hle/service/apt.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/core/hle') diff --git a/src/core/hle/service/apt.cpp b/src/core/hle/service/apt.cpp index 67c53529..ae040562 100644 --- a/src/core/hle/service/apt.cpp +++ b/src/core/hle/service/apt.cpp @@ -17,7 +17,7 @@ namespace APT_U { void Initialize(Service::Interface* self) { u32* cmd_buff = Service::GetCommandBuffer(); - DEBUG_LOG(KERNEL, "APT_U::Sync - Initialize"); + DEBUG_LOG(KERNEL, "APT_U::Initialize called"); cmd_buff[3] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT menu event handle cmd_buff[4] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT pause event handle @@ -33,13 +33,20 @@ void GetLockHandle(Service::Interface* self) { u32 flags = cmd_buff[1]; // TODO(bunnei): Figure out the purpose of the flag field cmd_buff[1] = 0; // No error cmd_buff[5] = Kernel::CreateMutex(false); - DEBUG_LOG(KERNEL, "APT_U::GetLockHandle called : created handle 0x%08X", cmd_buff[5]); + DEBUG_LOG(KERNEL, "APT_U::GetLockHandle called handle=0x%08X", cmd_buff[5]); +} + +void Enable(Service::Interface* self) { + u32* cmd_buff = Service::GetCommandBuffer(); + u32 unk = cmd_buff[1]; // TODO(bunnei): What is this field used for? + cmd_buff[1] = 0; // No error + ERROR_LOG(KERNEL, "(UNIMPEMENTED) APT_U::Enable called unk=0x%08X", unk); } const Interface::FunctionInfo FunctionTable[] = { {0x00010040, GetLockHandle, "GetLockHandle"}, {0x00020080, Initialize, "Initialize"}, - {0x00030040, NULL, "Enable"}, + {0x00030040, Enable, "Enable"}, {0x00040040, NULL, "Finalize"}, {0x00050040, NULL, "GetAppletManInfo"}, {0x00060040, NULL, "GetAppletInfo"}, -- cgit v1.2.3