summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-05-28 04:29:11 +0200
committerbunnei <ericbunnie@gmail.com>2014-05-28 04:29:11 +0200
commit94b30e8a3875346888fb7d0d36b9145cbed34836 (patch)
tree6908c3dd3794baa4a74a5df05fbfa02f0d1e4fe1 /src
parentevent: fixed typos and updated CMakeLists (diff)
downloadyuzu-94b30e8a3875346888fb7d0d36b9145cbed34836.tar
yuzu-94b30e8a3875346888fb7d0d36b9145cbed34836.tar.gz
yuzu-94b30e8a3875346888fb7d0d36b9145cbed34836.tar.bz2
yuzu-94b30e8a3875346888fb7d0d36b9145cbed34836.tar.lz
yuzu-94b30e8a3875346888fb7d0d36b9145cbed34836.tar.xz
yuzu-94b30e8a3875346888fb7d0d36b9145cbed34836.tar.zst
yuzu-94b30e8a3875346888fb7d0d36b9145cbed34836.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/apt.cpp12
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 @@
#include "common/common.h"
#include "core/hle/hle.h"
+#include "core/hle/kernel/event.h"
#include "core/hle/kernel/mutex.h"
#include "core/hle/service/apt.h"
@@ -15,7 +16,16 @@
namespace APT_U {
void Initialize(Service::Interface* self) {
- NOTICE_LOG(OSHLE, "APT_U::Sync - Initialize");
+ u32* cmd_buff = Service::GetCommandBuffer();
+ DEBUG_LOG(KERNEL, "APT_U::Sync - Initialize");
+
+ cmd_buff[3] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT menu event handle
+ cmd_buff[4] = Kernel::CreateEvent(RESETTYPE_ONESHOT); // APT pause event handle
+
+ Kernel::SetEventLocked(cmd_buff[3], true);
+ Kernel::SetEventLocked(cmd_buff[4], false); // Fire start event
+
+ cmd_buff[1] = 0; // No error
}
void GetLockHandle(Service::Interface* self) {