Replaced AM_installFIRM() with AM_installNativeFirm().

This commit is contained in:
profi200 2015-03-24 00:05:26 +01:00
parent d22d0a9345
commit 4ab2b1a363
2 changed files with 5 additions and 10 deletions

View File

@ -103,13 +103,10 @@ Note: If the title has the system category bit set, this will fail
*/ */
Result AM_DeleteAppTitle(u8 mediatype, u64 titleID); Result AM_DeleteAppTitle(u8 mediatype, u64 titleID);
/* AM_InstallFIRM() /* AM_InstallNativeFirm()
About: Installs FIRM to NAND (firm0:/ & firm1:/) from a CXI About: Installs NATIVE_FIRM to NAND (firm0:/ & firm1:/) from a CXI
Note: The title must have the uniqueid: 0x00000, otherwise this will fail.
titleid title id of title
*/ */
Result AM_InstallFIRM(u64 titleID); Result AM_InstallNativeFirm();
/* AM_GetTitleProductCode() /* AM_GetTitleProductCode()
About: Gets the product code of a title based on its title id. About: Gets the product code of a title based on its title id.

View File

@ -171,14 +171,12 @@ Result AM_DeleteAppTitle(u8 mediatype, u64 titleID)
return (Result)cmdbuf[1]; return (Result)cmdbuf[1];
} }
Result AM_InstallFIRM(u64 titleID) Result AM_InstallNativeFirm()
{ {
Result ret = 0; Result ret = 0;
u32 *cmdbuf = getThreadCommandBuffer(); u32 *cmdbuf = getThreadCommandBuffer();
cmdbuf[0] = 0x04010080; cmdbuf[0] = 0x040F0000;
cmdbuf[1] = titleID & 0xffffffff;
cmdbuf[2] = (u32)(titleID >> 32);
if((ret = svcSendSyncRequest(amHandle))!=0) return ret; if((ret = svcSendSyncRequest(amHandle))!=0) return ret;