diff options
| author | 2014-05-20 23:23:58 -0400 | |
|---|---|---|
| committer | 2014-05-20 23:23:58 -0400 | |
| commit | eb537c560a33db9955413a96afd3b98203a729fe (patch) | |
| tree | 6bb55926f3b811a578a2680b0cd454476a144244 /src/core/hle/service/apt.cpp | |
| parent | mutex: initial commit of HLE module (diff) | |
| download | yuzu-eb537c560a33db9955413a96afd3b98203a729fe.tar.gz yuzu-eb537c560a33db9955413a96afd3b98203a729fe.tar.xz yuzu-eb537c560a33db9955413a96afd3b98203a729fe.zip | |
mutex: refactored the interface to code to return a Mutex* handle
Diffstat (limited to 'src/core/hle/service/apt.cpp')
| -rw-r--r-- | src/core/hle/service/apt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/apt.cpp b/src/core/hle/service/apt.cpp index ecec4da00..b01f35ac5 100644 --- a/src/core/hle/service/apt.cpp +++ b/src/core/hle/service/apt.cpp | |||
| @@ -21,7 +21,8 @@ void Initialize(Service::Interface* self) { | |||
| 21 | void GetLockHandle(Service::Interface* self) { | 21 | void GetLockHandle(Service::Interface* self) { |
| 22 | u32* cmd_buff = Service::GetCommandBuffer(); | 22 | u32* cmd_buff = Service::GetCommandBuffer(); |
| 23 | u32 flags = cmd_buff[1]; // TODO(bunnei): Figure out the purpose of the flag field | 23 | u32 flags = cmd_buff[1]; // TODO(bunnei): Figure out the purpose of the flag field |
| 24 | cmd_buff[1] = Kernel::CreateMutex(cmd_buff[5], false); | 24 | cmd_buff[1] = 0; // No error |
| 25 | cmd_buff[5] = Kernel::CreateMutex(false); | ||
| 25 | } | 26 | } |
| 26 | 27 | ||
| 27 | const Interface::FunctionInfo FunctionTable[] = { | 28 | const Interface::FunctionInfo FunctionTable[] = { |