summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/apt.cpp
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-05-21 05:03:45 +0200
committerbunnei <ericbunnie@gmail.com>2014-05-21 05:03:45 +0200
commit978e1d4653cd12a68d6bfa05af57edb1645da0f5 (patch)
tree75b5c4bbf272453cc9c37b381ef67e5746df0ea8 /src/core/hle/service/apt.cpp
parentsvc: added some comments (diff)
downloadyuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.tar
yuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.tar.gz
yuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.tar.bz2
yuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.tar.lz
yuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.tar.xz
yuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.tar.zst
yuzu-978e1d4653cd12a68d6bfa05af57edb1645da0f5.zip
Diffstat (limited to 'src/core/hle/service/apt.cpp')
-rw-r--r--src/core/hle/service/apt.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/hle/service/apt.cpp b/src/core/hle/service/apt.cpp
index 1f6a70eab..ecec4da00 100644
--- a/src/core/hle/service/apt.cpp
+++ b/src/core/hle/service/apt.cpp
@@ -3,9 +3,10 @@
// Refer to the license.txt file included.
-#include "common/log.h"
+#include "common/common.h"
#include "core/hle/hle.h"
+#include "core/hle/kernel/mutex.h"
#include "core/hle/service/apt.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -19,11 +20,8 @@ void Initialize(Service::Interface* self) {
void GetLockHandle(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
- u32 flags = cmd_buff[1];
-
- // TODO: This should be an actual mutex handle. Games will check that this is not non-zero
- // (NULL), and fail if such. A faked non-zero value will at least enable further booting.
- cmd_buff[5] = 0x12345678;
+ u32 flags = cmd_buff[1]; // TODO(bunnei): Figure out the purpose of the flag field
+ cmd_buff[1] = Kernel::CreateMutex(cmd_buff[5], false);
}
const Interface::FunctionInfo FunctionTable[] = {