My Project
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
pm.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*
4  Requires access to "pm:app" service
5 */
6 
7 Result pmInit();
8 Result pmExit();
9 
10 /* PM_LaunchTitle()
11 About: Launches a title
12 
13  mediatype mediatype of title
14  titleid TitleId of title to launch
15  launch_flags use if you know of any
16 */
17 Result PM_LaunchTitle(u8 mediatype, u64 titleid);
18 
19 /* PM_GetTitleExheaderFlags()
20 About: Writes to a buffer the launch flags (8 bytes) from a title exheader.
21 
22  mediatype mediatype of title
23  titleid TitleId of title
24  out ptr to where the flags should be written to
25 */
26 Result PM_GetTitleExheaderFlags(u8 mediatype, u64 titleid, u8* out);
27 
28 /* PM_SetFIRMLaunchParams()
29 About: Sets the FIRM launch params from in
30 
31  size size of FIRM launch params
32  in ptr to location of FIRM launch params
33 */
35 
36 /* PM_GetFIRMLaunchParams()
37 About: Sets the FIRM launch params from in
38 
39  size size of buffer to store FIRM launch params
40  out ptr to location to write FIRM launch params
41 */
43 
44 /* PM_SetFIRMLaunchParams()
45 About: Same as PM_SetFIRMLaunchParams(), but also triggers a FIRM launch
46 
47  firm_titleid_low TitleID low of firm title to launch
48  size size of FIRM launch params
49  in ptr to location of FIRM launch params
50 */
51 Result PM_LaunchFIRMSetParams(u64 firm_titleid_low, u32 size, u8* in);
Result PM_GetFIRMLaunchParams(u32 size, u8 *out)
Definition: pm.c:66
s32 Result
Definition: types.h:42
Result PM_LaunchTitle(u8 mediatype, u64 titleid)
Result PM_SetFIRMLaunchParams(u32 size, u8 *in)
Definition: pm.c:51
uint8_t u8
Definition: types.h:21
Result pmExit()
Definition: pm.c:11
uint64_t u64
Definition: types.h:24
uint32_t u32
Definition: types.h:23
Result PM_GetTitleExheaderFlags(u8 mediatype, u64 titleid, u8 *out)
Definition: pm.c:33
Result PM_LaunchFIRMSetParams(u64 firm_titleid_low, u32 size, u8 *in)
Result pmInit()
Definition: pm.c:6