Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libctru/include/3ds/services/ns.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ Result NS_LaunchApplicationFIRM(u64 titleid, u32 flags);
* @brief Reboots to a title.
* @param mediatype Mediatype of the title.
* @param titleid ID of the title to launch.
* @param appmemtype The memory type a title should be launched under.
*/
Result NS_RebootToTitle(u8 mediatype, u64 titleid);
Result NS_RebootToTitle(u8 mediatype, u64 titleid, u8 appmemtype);

/**
* @brief Terminates the process with the specified titleid.
Expand Down
4 changes: 2 additions & 2 deletions libctru/source/services/ns.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Result NS_LaunchApplicationFIRM(u64 titleid, u32 flags)
return (Result)cmdbuf[1];
}

Result NS_RebootToTitle(u8 mediatype, u64 titleid)
Result NS_RebootToTitle(u8 mediatype, u64 titleid, u8 appmemtype)
{
Result ret = 0;
u32 *cmdbuf = getThreadCommandBuffer();
Expand All @@ -94,7 +94,7 @@ Result NS_RebootToTitle(u8 mediatype, u64 titleid)
cmdbuf[3] = (titleid >> 32) & 0xffffffff;
cmdbuf[4] = mediatype;
cmdbuf[5] = 0x0; // reserved
cmdbuf[6] = 0x0;
cmdbuf[6] = appmemtype;

if(R_FAILED(ret = svcSendSyncRequest(nsHandle)))return ret;

Expand Down