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/svc.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/svc.cpp')
| -rw-r--r-- | src/core/hle/svc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 73ab073f5..ffacdfb86 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -188,7 +188,7 @@ Result CreateThread(void* thread, u32 priority, u32 entry_point, u32 arg, u32 st | |||
| 188 | Result CreateMutex(void* _mutex, u32 initial_locked) { | 188 | Result CreateMutex(void* _mutex, u32 initial_locked) { |
| 189 | Handle* mutex = (Handle*)_mutex; | 189 | Handle* mutex = (Handle*)_mutex; |
| 190 | DEBUG_LOG(SVC, "CreateMutex called initial_locked=%s", initial_locked ? "true" : "false"); | 190 | DEBUG_LOG(SVC, "CreateMutex called initial_locked=%s", initial_locked ? "true" : "false"); |
| 191 | Kernel::CreateMutex(*mutex, (bool)initial_locked); | 191 | *mutex = Kernel::CreateMutex((initial_locked != 0)); |
| 192 | Core::g_app_core->SetReg(1, *mutex); | 192 | Core::g_app_core->SetReg(1, *mutex); |
| 193 | return 0; | 193 | return 0; |
| 194 | } | 194 | } |