summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2014-05-16 23:23:56 -0400
committerGravatar bunnei2014-05-16 23:23:56 -0400
commit540a693eae210d090b87426ead8cfac5893a9ef8 (patch)
tree70920fbb62aa8fc6ad5bc5299631af85b08271b9 /src
parentMerge master into threading to add support for VFP (diff)
downloadyuzu-540a693eae210d090b87426ead8cfac5893a9ef8.tar.gz
yuzu-540a693eae210d090b87426ead8cfac5893a9ef8.tar.xz
yuzu-540a693eae210d090b87426ead8cfac5893a9ef8.zip
updated APT_U::GetLockHandle to return a valid handle
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/apt.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/service/apt.cpp b/src/core/hle/service/apt.cpp
index 709ac5493..ddb975607 100644
--- a/src/core/hle/service/apt.cpp
+++ b/src/core/hle/service/apt.cpp
@@ -19,7 +19,11 @@ void Initialize(Service::Interface* self) {
19 19
20void GetLockHandle(Service::Interface* self) { 20void GetLockHandle(Service::Interface* self) {
21 u32* cmd_buff = Service::GetCommandBuffer(); 21 u32* cmd_buff = Service::GetCommandBuffer();
22 cmd_buff[5] = 0x00000000; // TODO: This should be an actual mutex handle 22 u32 flags = cmd_buff[1];
23
24 // TODO: This should be an actual mutex handle. Games will check that this is not non-zero
25 // (NULL), and fail if such. A faked non-zero value will at least enable further booting.
26 cmd_buff[5] = 0xDEADBEEF;
23} 27}
24 28
25const Interface::FunctionInfo FunctionTable[] = { 29const Interface::FunctionInfo FunctionTable[] = {