diff options
| author | 2014-05-27 23:56:08 -0400 | |
|---|---|---|
| committer | 2014-05-27 23:56:08 -0400 | |
| commit | 3972d4ca8ba82a1e344e1255b0c113751d4b9f59 (patch) | |
| tree | f9bcb73c302c04940a837dcf0eff99a7ae214f13 /src/core/hle/service/apt.cpp | |
| parent | mutex: added preliminary SyncRequest/WaitSynchronization, added some comments... (diff) | |
| download | yuzu-3972d4ca8ba82a1e344e1255b0c113751d4b9f59.tar.gz yuzu-3972d4ca8ba82a1e344e1255b0c113751d4b9f59.tar.xz yuzu-3972d4ca8ba82a1e344e1255b0c113751d4b9f59.zip | |
APT_U: added stubbed function for APT_U::Enable, fixed some log messages to be more consistent
Diffstat (limited to 'src/core/hle/service/apt.cpp')
| -rw-r--r-- | src/core/hle/service/apt.cpp | 13 |
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 { | |||
| 17 | 17 | ||
| 18 | void Initialize(Service::Interface* self) { | 18 | void Initialize(Service::Interface* self) { |
| 19 | u32* cmd_buff = Service::GetCommandBuffer(); | 19 | u32* cmd_buff = Service::GetCommandBuffer(); |
| 20 | DEBUG_LOG(KERNEL, "APT_U::Sync - Initialize"); | 20 | DEBUG_LOG(KERNEL, "APT_U::Initialize called"); |
| 21 | 21 | ||
| 22 | cmd_buff[3] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT menu event handle | 22 | cmd_buff[3] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT menu event handle |
| 23 | cmd_buff[4] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT pause event handle | 23 | cmd_buff[4] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT pause event handle |
| @@ -33,13 +33,20 @@ void GetLockHandle(Service::Interface* self) { | |||
| 33 | u32 flags = cmd_buff[1]; // TODO(bunnei): Figure out the purpose of the flag field | 33 | u32 flags = cmd_buff[1]; // TODO(bunnei): Figure out the purpose of the flag field |
| 34 | cmd_buff[1] = 0; // No error | 34 | cmd_buff[1] = 0; // No error |
| 35 | cmd_buff[5] = Kernel::CreateMutex(false); | 35 | cmd_buff[5] = Kernel::CreateMutex(false); |
| 36 | DEBUG_LOG(KERNEL, "APT_U::GetLockHandle called : created handle 0x%08X", cmd_buff[5]); | 36 | DEBUG_LOG(KERNEL, "APT_U::GetLockHandle called handle=0x%08X", cmd_buff[5]); |
| 37 | } | ||
| 38 | |||
| 39 | void Enable(Service::Interface* self) { | ||
| 40 | u32* cmd_buff = Service::GetCommandBuffer(); | ||
| 41 | u32 unk = cmd_buff[1]; // TODO(bunnei): What is this field used for? | ||
| 42 | cmd_buff[1] = 0; // No error | ||
| 43 | ERROR_LOG(KERNEL, "(UNIMPEMENTED) APT_U::Enable called unk=0x%08X", unk); | ||
| 37 | } | 44 | } |
| 38 | 45 | ||
| 39 | const Interface::FunctionInfo FunctionTable[] = { | 46 | const Interface::FunctionInfo FunctionTable[] = { |
| 40 | {0x00010040, GetLockHandle, "GetLockHandle"}, | 47 | {0x00010040, GetLockHandle, "GetLockHandle"}, |
| 41 | {0x00020080, Initialize, "Initialize"}, | 48 | {0x00020080, Initialize, "Initialize"}, |
| 42 | {0x00030040, NULL, "Enable"}, | 49 | {0x00030040, Enable, "Enable"}, |
| 43 | {0x00040040, NULL, "Finalize"}, | 50 | {0x00040040, NULL, "Finalize"}, |
| 44 | {0x00050040, NULL, "GetAppletManInfo"}, | 51 | {0x00050040, NULL, "GetAppletManInfo"}, |
| 45 | {0x00060040, NULL, "GetAppletInfo"}, | 52 | {0x00060040, NULL, "GetAppletInfo"}, |