summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-05-28 05:56:08 +0200
committerbunnei <ericbunnie@gmail.com>2014-05-28 05:56:08 +0200
commit3972d4ca8ba82a1e344e1255b0c113751d4b9f59 (patch)
treef9bcb73c302c04940a837dcf0eff99a7ae214f13 /src/core/hle/service
parentmutex: added preliminary SyncRequest/WaitSynchronization, added some comments/assertions (diff)
downloadyuzu-3972d4ca8ba82a1e344e1255b0c113751d4b9f59.tar
yuzu-3972d4ca8ba82a1e344e1255b0c113751d4b9f59.tar.gz
yuzu-3972d4ca8ba82a1e344e1255b0c113751d4b9f59.tar.bz2
yuzu-3972d4ca8ba82a1e344e1255b0c113751d4b9f59.tar.lz
yuzu-3972d4ca8ba82a1e344e1255b0c113751d4b9f59.tar.xz
yuzu-3972d4ca8ba82a1e344e1255b0c113751d4b9f59.tar.zst
yuzu-3972d4ca8ba82a1e344e1255b0c113751d4b9f59.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/apt.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/core/hle/service/apt.cpp b/src/core/hle/service/apt.cpp
index 67c53529a..ae040562c 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"},