From 7ac8991b95e70467edb8cd3eef086f7a99b7420d Mon Sep 17 00:00:00 2001 From: TuxSH Date: Sun, 17 Mar 2019 20:37:23 +0100 Subject: [PATCH] Add PM launch flags --- libctru/include/3ds/services/pm.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libctru/include/3ds/services/pm.h b/libctru/include/3ds/services/pm.h index 64927ab..3beb124 100644 --- a/libctru/include/3ds/services/pm.h +++ b/libctru/include/3ds/services/pm.h @@ -4,6 +4,16 @@ */ #pragma once +/// Launch flags for PM launch commands. +enum { + PMLAUNCHFLAG_NORMAL_APPLICATION = BIT(0), + PMLAUNCHFLAG_LOAD_DEPENDENCIES = BIT(1), + PMLAUNCHFLAG_NOTIFY_TERMINATION = BIT(2), + PMLAUNCHFLAG_QUEUE_DEBUG_APPLICATION = BIT(3), + PMLAUNCHFLAG_TERMINATION_NOTIFICATION_MASK = 0xF0, + PMLAUNCHFLAG_USE_UPDATE_TITLE = BIT(16), +}; + /// Initializes PM. Result pmInit(void); @@ -65,4 +75,4 @@ Result PM_TerminateProcess(u8 pid, u64 timeout); * @brief Unregisters a process * @param tid TitleID of the process to unregister */ - Result PM_UnregisterProcess(u64 tid); \ No newline at end of file + Result PM_UnregisterProcess(u64 tid);