diff options
Diffstat (limited to 'src/core/hle/service/apt.cpp')
| -rw-r--r-- | src/core/hle/service/apt.cpp | 10 |
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 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | #include "common/log.h" | 6 | #include "common/common.h" |
| 7 | 7 | ||
| 8 | #include "core/hle/hle.h" | 8 | #include "core/hle/hle.h" |
| 9 | #include "core/hle/kernel/mutex.h" | ||
| 9 | #include "core/hle/service/apt.h" | 10 | #include "core/hle/service/apt.h" |
| 10 | 11 | ||
| 11 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 12 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| @@ -19,11 +20,8 @@ void Initialize(Service::Interface* self) { | |||
| 19 | 20 | ||
| 20 | void GetLockHandle(Service::Interface* self) { | 21 | void GetLockHandle(Service::Interface* self) { |
| 21 | u32* cmd_buff = Service::GetCommandBuffer(); | 22 | u32* cmd_buff = Service::GetCommandBuffer(); |
| 22 | u32 flags = cmd_buff[1]; | 23 | u32 flags = cmd_buff[1]; // TODO(bunnei): Figure out the purpose of the flag field |
| 23 | 24 | cmd_buff[1] = Kernel::CreateMutex(cmd_buff[5], false); | |
| 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] = 0x12345678; | ||
| 27 | } | 25 | } |
| 28 | 26 | ||
| 29 | const Interface::FunctionInfo FunctionTable[] = { | 27 | const Interface::FunctionInfo FunctionTable[] = { |