diff options
| author | 2014-05-22 22:57:45 -0400 | |
|---|---|---|
| committer | 2014-05-22 22:57:45 -0400 | |
| commit | 32c314c99290a52f1f870ecf8c677e3792ed09c4 (patch) | |
| tree | 1cea62bc320d51ebb217e7c361ae10b65b71dd45 /src/core/hle/service/apt.cpp | |
| parent | Merge branch 'master' of https://github.com/citra-emu/citra (diff) | |
| parent | core: added Kernel::Reschedule() call to check for thread changes, shortened ... (diff) | |
| download | yuzu-32c314c99290a52f1f870ecf8c677e3792ed09c4.tar.gz yuzu-32c314c99290a52f1f870ecf8c677e3792ed09c4.tar.xz yuzu-32c314c99290a52f1f870ecf8c677e3792ed09c4.zip | |
Merge branch 'threading'
Diffstat (limited to 'src/core/hle/service/apt.cpp')
| -rw-r--r-- | src/core/hle/service/apt.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/hle/service/apt.cpp b/src/core/hle/service/apt.cpp index 709ac5493..32759a087 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,7 +20,10 @@ 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 | cmd_buff[5] = 0x00000000; // TODO: This should be an actual mutex handle | 23 | u32 flags = cmd_buff[1]; // TODO(bunnei): Figure out the purpose of the flag field |
| 24 | cmd_buff[1] = 0; // No error | ||
| 25 | cmd_buff[5] = Kernel::CreateMutex(false); | ||
| 26 | DEBUG_LOG(KERNEL, "APT_U::GetLockHandle called : created handle 0x%08X", cmd_buff[5]); | ||
| 23 | } | 27 | } |
| 24 | 28 | ||
| 25 | const Interface::FunctionInfo FunctionTable[] = { | 29 | const Interface::FunctionInfo FunctionTable[] = { |