Result amInit(void)
Initializes AM. This doesn't initialize with "am:app", see amAppInit().
Result AM_InstallNativeFirm(void)
Installs the current NATIVE_FIRM title to NAND (firm0:/ & firm1:/)
Result AM_InstallFirm(u64 titleID)
Installs a NATIVE_FIRM title to NAND.
Result AM_DeleteTitle(FS_MediaType mediatype, u64 titleID)
Deletes a title.
Result AM_GetCiaCoreVersion(u32 *coreVersion, Handle fileHandle)
Gets the core version of a CIA file.
Result AM_ReadTwlBackupInfo(Handle filehandle, void *outinfo, u32 outinfo_size, void *workbuf, u32 workbuf_size, void *banner, u32 banner_size)
Reads info from the specified DSiWare export file.
Result AM_DeleteAllPendingTitles(FS_MediaType mediatype)
Deletes all pending titles.
Result AM_InstallTmdBegin(Handle *tmdHandle)
Begins installing a TMD.
Result AM_InstallContentFinish(Handle contentHandle)
Finishes installing title content.
Result AM_ImportCertificate(u32 certSize, void *cert)
Imports a certificate into the ticket certificate chain.
Result AM_ExportTwlBackup(u64 titleID, u8 operation, void *workbuf, u32 workbuf_size, const char *filepath)
Exports DSiWare to the specified filepath.
Result AM_GetTitleProductCode(FS_MediaType mediatype, u64 titleId, char *productCode)
Gets the product code of a title.
Result AMAPP_GetDLCContentInfoCount(u32 *count, FS_MediaType mediatype, u64 titleID)
Gets the number of content index installed under the specified DLC title.
Result AM_InstallTicketAbort(Handle ticketHandle)
Aborts installing a ticket.
Result AM_InstallContentCancel(Handle contentHandle)
Cancels installing title content.
Result AM_GetPendingTitleInfo(u32 titleCount, FS_MediaType mediatype, u64 *titleIds, AM_PendingTitleEntry *titleInfo)
Gets information about pending titles on this system.
Result AM_StartCiaInstall(FS_MediaType mediatype, Handle *ciaHandle)
Initializes the CIA install process, returning a handle to write CIA data to.
Result AM_DeleteAllExpiredTitles(FS_MediaType mediatype)
Deletes all expired titles.
Result AM_StartDlpChildCiaInstall(Handle *ciaHandle)
Initializes the CIA install process for Download Play CIAs, returning a handle to write CIA data to.
Result AM_InstallTitleAbort(void)
Aborts installing a title.
Result AM_DeleteAllTwlTitles(void)
Deletes all TWL titles.
Result AM_InitializeExternalTitleDatabase(bool overwrite)
Initializes the external (SD) title database.
Result AM_QueryAvailableExternalTitleDatabase(bool *available)
Queries whether the external title database is available.
Result AM_DeletePendingTitles(FS_MediaType mediatype, u32 flags)
Deletes pending titles.
Result AM_GetTicketCount(u32 *count)
Gets the number of tickets installed on the system.
Result AM_GetDeviceId(u32 *deviceID)
Gets a 32-bit device-specific ID.
Result AM_CancelCIAInstall(Handle ciaHandle)
Aborts the CIA install process.
Result AM_GetTitleCount(FS_MediaType mediatype, u32 *count)
Gets the number of titles for a given media type.
Result AM_DeletePendingTitle(FS_MediaType mediatype, u64 titleId)
Deletes a pending title.
Result AM_InstallContentBegin(Handle *contentHandle, u16 index)
Begins installing title content.
Result AM_GetCiaMetaOffset(u64 *metaOffset, Handle fileHandle)
Gets the meta section offset of a CIA file.
Result AM_InstallTitleBegin(FS_MediaType mediaType, u64 titleId, bool unk)
Begins installing a title.
Result AM_DeleteAllDemoLaunchInfos(void)
Resets play count of all installed demos by deleting their launch info.
Result AM_InstallTmdAbort(Handle tmdHandle)
Aborts installing a TMD.
Result AM_FinishCiaInstallWithoutCommit(Handle ciaHandle)
Finalizes the CIA install process without committing the title to title.db or tmp*....
Result AM_DeleteTicket(u64 ticketId)
Deletes a ticket.
Result AM_GetPendingTitleList(u32 *titlesRead, u32 titleCount, FS_MediaType mediatype, u32 statusMask, u64 *titleIds)
Gets a list of pending titles on this system.
@ AM_STATUS_MASK_INSTALLING
Titles currently installing.
Definition: am.h:21
@ AM_STATUS_MASK_AWAITING_FINALIZATION
Titles awaiting finalization.
Definition: am.h:22
AM_ContentInfoFlags
Title ContentInfo flags.
Definition: am.h:71
@ AM_CONTENT_DOWNLOADED
?
Definition: am.h:72
@ AM_CONTENT_OWNED
?
Definition: am.h:73
Result AM_InstallTicketFinish(Handle ticketHandle)
Finishes installing a ticket.
Result AM_GetTitleList(u32 *titlesRead, FS_MediaType mediatype, u32 titleCount, u64 *titleIds)
Gets a list of title IDs present in a mediatype.
Handle * amGetSessionHandle(void)
Gets the current AM session handle.
void amExit(void)
Exits AM.
Result AM_DeleteAppTitle(FS_MediaType mediatype, u64 titleID)
Deletes a title, provided that it is not a system title.
Result AM_InstallContentStop(Handle contentHandle)
Stops installing title content, generally to be resumed later.
Result AMAPP_ListDLCContentInfos(u32 *contentInfoRead, FS_MediaType mediatype, u64 titleID, u32 contentInfoCount, u32 offset, AM_ContentInfo *contentInfos)
Gets content infos installed under the specified DLC title.
Result AM_InstallTitleStop(void)
Stops installing a title, generally to be resumed later.
Result AM_CommitImportTitlesAndUpdateFirmwareAuto(FS_MediaType mediaType, u32 titleCount, bool temp, u64 *titleIds)
Commits installed titles, and updates FIRM if necessary.
Result AM_CreateImportContentContexts(u32 contentCount, u16 *contentIndices)
Prepares to import title contents.
Result AM_ImportTwlBackup(Handle filehandle, u8 operation, void *buffer, u32 size)
Imports DSiWare from the specified file.
Result AM_ImportCertificates(u32 cert1Size, void *cert1, u32 cert2Size, void *cert2, u32 cert3Size, void *cert3, u32 cert4Size, void *cert4)
Imports up to four certificates into the ticket certificate chain.
Result AM_InstallTmdFinish(Handle tmdHandle, bool unk)
Finishes installing a TMD.
Result AM_CommitImportTitles(FS_MediaType mediaType, u32 titleCount, bool temp, const u64 *titleIds)
Commits installed titles.
Result AM_InstallTitleResume(FS_MediaType mediaType, u64 titleId)
Resumes installing a title.
Result AM_InstallContentResume(Handle *contentHandle, u64 *resumeOffset, u16 index)
Resumes installing title content.
Result AM_GetPendingTitleCount(u32 *count, FS_MediaType mediatype, u32 statusMask)
Gets the number of pending titles on this system.
Result AM_GetTicketList(u32 *ticketsRead, u32 ticketCount, u32 skip, u64 *ticketIds)
Gets a list of tickets installed on the system.
Result amAppInit(void)
Initializes AM with a service which has access to the amapp-commands. This should only be used when u...
Result AM_GetCiaIcon(void *icon, Handle fileHandle)
Gets the SMDH icon data of a CIA file.
AM_InstallStatus
Pending title status values.
Definition: am.h:27
@ AM_STATUS_AWAITING_FINALIZATION
Awaiting finalization.
Definition: am.h:31
@ AM_STATUS_SAVED
Title saved, but not installed.
Definition: am.h:29
@ AM_STATUS_ABORTED
Install aborted.
Definition: am.h:28
@ AM_STATUS_INSTALL_IN_PROGRESS
Install in progress.
Definition: am.h:30
Result AM_GetCiaDependencies(u64 *dependencies, Handle fileHandle)
Gets the title ID dependency list of a CIA file.
Result AM_GetCiaFileInfo(FS_MediaType mediatype, AM_TitleEntry *titleEntry, Handle fileHandle)
Gets an AM_TitleEntry instance for a CIA file.
Result AM_CommitImportPrograms(FS_MediaType mediaType, u32 titleCount, bool temp, const u64 *titleIds)
Commits installed CIAs.
Result AM_GetCiaRequiredSpace(u64 *requiredSpace, FS_MediaType mediaType, Handle fileHandle)
Gets the free space, in bytes, required to install a CIA file.
Result AM_DeleteAllTemporaryTitles(void)
Deletes temporary titles.
Result AM_GetTitleInfo(FS_MediaType mediatype, u32 titleCount, u64 *titleIds, AM_TitleEntry *titleInfo)
Gets a list of details about installed titles.
Result AM_GetCiaMetaSection(void *meta, u32 size, Handle fileHandle)
Gets the full meta section of a CIA file.
Result AM_GetTitleExtDataId(u64 *extDataId, FS_MediaType mediatype, u64 titleId)
Gets the ext data ID of a title.
Result AM_GetTWLPartitionInfo(AM_TWLPartitionInfo *info)
Retrieves information about the NAND TWL partition.
Result AM_InstallTicketBegin(Handle *ticketHandle)
Begins installing a ticket.
@ AM_DELETE_PENDING_SYSTEM
System titles.
Definition: am.h:48
@ AM_DELETE_PENDING_NON_SYSTEM
Non-system titles.
Definition: am.h:47
Result AM_InstallTitleFinish(void)
Finishes installing a title.
Result AM_FinishCiaInstall(Handle ciaHandle)
Finalizes the CIA install process.
FS_MediaType
Media types.
Definition: fs.h:35
Contains information about a title's content.
Definition: am.h:60
u16 type
?
Definition: am.h:62
u16 index
Index of the content in the title.
Definition: am.h:61
u8 flags
AM_ContentInfoFlags
Definition: am.h:65
u32 contentId
ID of the content in the title.
Definition: am.h:63
u64 size
Size of the content in the title.
Definition: am.h:64
u16 status
AM_InstallStatus
Definition: am.h:39
u64 titleId
Title ID.
Definition: am.h:37
u16 version
Version.
Definition: am.h:38
u32 titleType
Title Type.
Definition: am.h:40
Information about the TWL NAND partition.
Definition: am.h:52
u64 freeSpace
Total free space.
Definition: am.h:54
u64 titlesCapacity
Capacity for titles.
Definition: am.h:55
u64 capacity
Total capacity.
Definition: am.h:53
u64 titlesFreeSpace
Free space for titles.
Definition: am.h:56
Contains basic information about a title.
Definition: am.h:11
u64 titleID
The title's ID.
Definition: am.h:12
u16 version
The title's version.
Definition: am.h:14
u64 size
The title's installed size.
Definition: am.h:13
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:47
uint64_t u64
64-bit unsigned integer
Definition: types.h:24
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
u32 Handle
Resource handle.
Definition: types.h:41
s32 Result
Function result.
Definition: types.h:42
uint16_t u16
16-bit unsigned integer
Definition: types.h:22
uint32_t u32
32-bit unsigned integer
Definition: types.h:23