summaryrefslogtreecommitdiff
path: root/src/core/hle/service/apt.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2014-04-13 22:59:16 -0400
committerGravatar bunnei2014-04-13 22:59:16 -0400
commit18766b9e69bf822764eba98237325d07b3c4ef0f (patch)
treebc7fc97b99c1be776c9ed23c1151aecb3ee4ee59 /src/core/hle/service/apt.cpp
parentadded framework for APT service (application and title launching service) (diff)
downloadyuzu-18766b9e69bf822764eba98237325d07b3c4ef0f.tar.gz
yuzu-18766b9e69bf822764eba98237325d07b3c4ef0f.tar.xz
yuzu-18766b9e69bf822764eba98237325d07b3c4ef0f.zip
added a stub for GetLockHandle
Diffstat (limited to 'src/core/hle/service/apt.cpp')
-rw-r--r--src/core/hle/service/apt.cpp35
1 files changed, 30 insertions, 5 deletions
diff --git a/src/core/hle/service/apt.cpp b/src/core/hle/service/apt.cpp
index 9ab5a361c..5e37b838a 100644
--- a/src/core/hle/service/apt.cpp
+++ b/src/core/hle/service/apt.cpp
@@ -4,17 +4,42 @@
4 4
5 5
6#include "common/log.h" 6#include "common/log.h"
7#include "core/hle/service/apt.h"
8
9
10 7
8#include "core/hle/hle.h"
9#include "core/hle/service/apt.h"
11 10
12namespace Service { 11namespace Service {
13 12
13// Returns handle to APT Mutex. Not imlemented.
14Syscall::Result APT::GetLockHandle() {
15 return 0x00000000;
16}
14 17
18/**
19 * Called when svcSendSyncRequest is called, loads command buffer and executes comand
20 * @return Return result of svcSendSyncRequest passed back to user app
21 */
15Syscall::Result APT::Sync() { 22Syscall::Result APT::Sync() {
16 NOTICE_LOG(HLE, "APT::Sync - Initialize"); 23 Syscall::Result res = 0;
17 return 0; 24 u32* cmd_buff = (u32*)HLE::GetPointer(HLE::CMD_BUFFER_ADDR + CMD_OFFSET);
25
26 switch(cmd_buff[0]) {
27 case CMD_HEADER_INIT:
28 NOTICE_LOG(OSHLE, "APT::Sync - Initialize");
29 break;
30
31 case CMD_HEADER_GET_LOCK_HANDLE:
32 NOTICE_LOG(OSHLE, "APT::Sync - GetLockHandle");
33 cmd_buff[5] = GetLockHandle();
34 break;
35
36 default:
37 ERROR_LOG(OSHLE, "APT::Sync - Unknown command 0x%08X", cmd_buff[0]);
38 res = -1;
39 break;
40 }
41
42 return res;
18} 43}
19 44
20 45