]> Chaos Git - corbenik/ctrulib.git/commitdiff
Replaced AM_installFIRM() with AM_installNativeFirm().
authorprofi200 <fd3194@gmx.de>
Mon, 23 Mar 2015 23:05:26 +0000 (00:05 +0100)
committerprofi200 <fd3194@gmx.de>
Sat, 28 Mar 2015 21:02:46 +0000 (22:02 +0100)
libctru/include/3ds/services/am.h
libctru/source/services/am.c

index eaf7379ccd08f3b9e34fe99625d175371b601e83..06ce9575e6473acc0a856a599829f21b1bac88ef 100644 (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);
 
-/* AM_InstallFIRM()
-About: Installs 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
+/* AM_InstallNativeFirm()
+About: Installs NATIVE_FIRM to NAND (firm0:/ & firm1:/) from a CXI
 */
-Result AM_InstallFIRM(u64 titleID);
+Result AM_InstallNativeFirm();
 
 /* AM_GetTitleProductCode()
 About: Gets the product code of a title based on its title id.
index e80faffee20b3e40ba4ae179d048ec24024e43d7..a6f6cb3eb6a6676abfc6d453125ef4c2fb8e02e9 100644 (file)
@@ -171,14 +171,12 @@ Result AM_DeleteAppTitle(u8 mediatype, u64 titleID)
        return (Result)cmdbuf[1];
 }
 
-Result AM_InstallFIRM(u64 titleID)
+Result AM_InstallNativeFirm()
 {
        Result ret = 0;
        u32 *cmdbuf = getThreadCommandBuffer();
 
-       cmdbuf[0] = 0x04010080;
-       cmdbuf[1] = titleID & 0xffffffff;
-       cmdbuf[2] = (u32)(titleID >> 32);
+       cmdbuf[0] = 0x040F0000;
 
        if((ret = svcSendSyncRequest(amHandle))!=0) return ret;