diff options
| author | 2014-05-27 22:29:11 -0400 | |
|---|---|---|
| committer | 2014-05-27 22:29:11 -0400 | |
| commit | 94b30e8a3875346888fb7d0d36b9145cbed34836 (patch) | |
| tree | 6908c3dd3794baa4a74a5df05fbfa02f0d1e4fe1 | |
| parent | event: fixed typos and updated CMakeLists (diff) | |
| download | yuzu-94b30e8a3875346888fb7d0d36b9145cbed34836.tar.gz yuzu-94b30e8a3875346888fb7d0d36b9145cbed34836.tar.xz yuzu-94b30e8a3875346888fb7d0d36b9145cbed34836.zip | |
APT_U: added event creation to Initialize method
| -rw-r--r-- | src/core/hle/service/apt.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/hle/service/apt.cpp b/src/core/hle/service/apt.cpp index 32759a087..67c53529a 100644 --- a/src/core/hle/service/apt.cpp +++ b/src/core/hle/service/apt.cpp | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | #include "common/common.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/event.h" | ||
| 9 | #include "core/hle/kernel/mutex.h" | 10 | #include "core/hle/kernel/mutex.h" |
| 10 | #include "core/hle/service/apt.h" | 11 | #include "core/hle/service/apt.h" |
| 11 | 12 | ||
| @@ -15,7 +16,16 @@ | |||
| 15 | namespace APT_U { | 16 | namespace APT_U { |
| 16 | 17 | ||
| 17 | void Initialize(Service::Interface* self) { | 18 | void Initialize(Service::Interface* self) { |
| 18 | NOTICE_LOG(OSHLE, "APT_U::Sync - Initialize"); | 19 | u32* cmd_buff = Service::GetCommandBuffer(); |
| 20 | DEBUG_LOG(KERNEL, "APT_U::Sync - Initialize"); | ||
| 21 | |||
| 22 | cmd_buff[3] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT menu event handle | ||
| 23 | cmd_buff[4] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT pause event handle | ||
| 24 | |||
| 25 | Kernel::SetEventLocked(cmd_buff[3], true); | ||
| 26 | Kernel::SetEventLocked(cmd_buff[4], false); // Fire start event | ||
| 27 | |||
| 28 | cmd_buff[1] = 0; // No error | ||
| 19 | } | 29 | } |
| 20 | 30 | ||
| 21 | void GetLockHandle(Service::Interface* self) { | 31 | void GetLockHandle(Service::Interface* self) { |