Add AM_DeleteAllDemoLaunchInfos
This commit is contained in:
parent
46a7ba3b8f
commit
daec8a4dfb
@ -439,3 +439,6 @@ Result AM_ImportCertificate(u32 certSize, void* cert);
|
|||||||
* @param titleIds Title IDs to finalize.
|
* @param titleIds Title IDs to finalize.
|
||||||
*/
|
*/
|
||||||
Result AM_CommitImportTitlesAndUpdateFirmwareAuto(FS_MediaType mediaType, u32 titleCount, bool temp, u64* titleIds);
|
Result AM_CommitImportTitlesAndUpdateFirmwareAuto(FS_MediaType mediaType, u32 titleCount, bool temp, u64* titleIds);
|
||||||
|
|
||||||
|
/// Resets play count of all installed demos by deleting their launch info.
|
||||||
|
Result AM_DeleteAllDemoLaunchInfos(void);
|
||||||
|
@ -878,3 +878,15 @@ Result AM_CommitImportTitlesAndUpdateFirmwareAuto(FS_MediaType mediaType, u32 ti
|
|||||||
|
|
||||||
return (Result)cmdbuf[1];
|
return (Result)cmdbuf[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result AM_DeleteAllDemoLaunchInfos(void)
|
||||||
|
{
|
||||||
|
Result ret = 0;
|
||||||
|
u32 *cmdbuf = getThreadCommandBuffer();
|
||||||
|
|
||||||
|
cmdbuf[0] = IPC_MakeHeader(0x827,0,0); // 0x8270000
|
||||||
|
|
||||||
|
if(R_FAILED(ret = svcSendSyncRequest(amHandle))) return ret;
|
||||||
|
|
||||||
|
return (Result)cmdbuf[1];
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user