summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-11-11 06:12:10 +0100
committerbunnei <bunneidev@gmail.com>2014-11-12 05:51:54 +0100
commit8eced1b6976a0f074dc87cf486cd4c092d3bd35c (patch)
tree44593198e2f45783b0fbc2107fac5fdf903906de /src
parentAPT_U: Fixes for GetLockHandle to boot system titles. (diff)
downloadyuzu-8eced1b6976a0f074dc87cf486cd4c092d3bd35c.tar
yuzu-8eced1b6976a0f074dc87cf486cd4c092d3bd35c.tar.gz
yuzu-8eced1b6976a0f074dc87cf486cd4c092d3bd35c.tar.bz2
yuzu-8eced1b6976a0f074dc87cf486cd4c092d3bd35c.tar.lz
yuzu-8eced1b6976a0f074dc87cf486cd4c092d3bd35c.tar.xz
yuzu-8eced1b6976a0f074dc87cf486cd4c092d3bd35c.tar.zst
yuzu-8eced1b6976a0f074dc87cf486cd4c092d3bd35c.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/apt_u.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/apt_u.cpp b/src/core/hle/service/apt_u.cpp
index 5d7f0bac9..4997a681e 100644
--- a/src/core/hle/service/apt_u.cpp
+++ b/src/core/hle/service/apt_u.cpp
@@ -34,7 +34,11 @@ void Initialize(Service::Interface* self) {
Kernel::SetEventLocked(cmd_buff[3], true);
Kernel::SetEventLocked(cmd_buff[4], false); // Fire start event
+ _assert_msg_(KERNEL, (0 != lock_handle), "Cannot initialize without lock");
+ Kernel::ReleaseMutex(lock_handle);
+
cmd_buff[1] = 0; // No error
+
DEBUG_LOG(KERNEL, "called");
}