Add AM_DeleteAllDemoLaunchInfos (#320)
This commit is contained in:
parent
39e54e3634
commit
744ca95390
@ -470,3 +470,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);
|
||||||
|
@ -951,3 +951,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