Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Result AM_GetStorageId(u64 *storageId, FS_MediaType mediatype, u64 titleId)
- {
- Result ret = 0;
- u32 *cmdbuf = getThreadCommandBuffer();
- cmdbuf[0] = IPC_MakeHeader(0x6,3,0); // 0x000600C0
- cmdbuf[1] = mediatype;
- cmdbuf[2] = titleId & 0xffffffff;
- cmdbuf[3] = (u32)(titleId >> 32);
- if(R_FAILED(ret = svcSendSyncRequest(amHandle))) return ret;
- if(storageId) *storageId = (u64)cmdbuf[2] | ((u64)cmdbuf[3] << 32);
- return (Result)cmdbuf[1];
- }
Add Comment
Please, Sign In to add comment