Nn aoc.rpl

From WiiUBrew
Jump to navigation Jump to search

aoc.rpl (Add-On Content) is the library containing the API for add-on content title management and usage.

Functions

Name Prototype Description
AOC_CalculateWorkBufferSize uint32_t AOC_CalculateWorkBufferSize(uint32_t maxTitles) Gets the size of the work buffer.
AOC_CloseTitle Closes a downloadable content title.
AOC_DebugRealDeviceAccess void AOC_DebugRealDeviceAccess(BOOL unknown)
AOC_DeleteContent Deletes a downloadable content title.
AOC_Finalize AOCError AOC_Finalize(void) Finalises the AOC library.
AOC_GetErrorCode uint32_t AOC_GetErrorCode(AOCError error) Gets an error code to display to the user.
AOC_GetOccupiedSize
AOC_GetPurchaseInfo AOCError AOC_GetPurchaseInfo(uint32_t *purchaseBoolArrayOut, uint64_t titleId, uint16_t *entryIds, uint32_t entryCount, void *workBuffer, uint32_t workBufferSize) Checks if an add-on content title has been purchased.
AOC_Initialize Initialises the AOC library.
AOC_ListTitle AOCError AOC_ListTitle(uint32_t *outTitleCount, AOCTitle *titles, uint32_t maxTitles, void *workBuffer, uint32_t workBufferSize) Lists all installed add-on content titles for a title.
AOC_LockTitle int AOC_LockTitle(void)
AOC_OpenTitle AOCError AOC_OpenTitle(char *pathOut, AOCTitle *aocTitleInfo, void *workBuffer, uint32_t workBufferSize) Opens a downloadable content title.
AOC_UnlockTitle int AOC_UnlockTitle(void)
AOC_UtilGetValidAocTitles

Defines

Macros

#define AOC_MAX_META_UNIQUE_ID_NUM   32
//Maximum number of titles that can be opened at once. See address 0x05001810 in IOSU.
#define AOC_MAX_TITLE_OPEN_NUM       16

Enums

AOCError

Name Value
AOC_ERROR_OK
AOC_ERROR_INVALID_PARAM -1
AOC_ERROR_NOT_INITIALIZED -2
AOC_ERROR_ALREADY_INITIALIZED -3
AOC_ERROR_TITLE_STILL_OPEN -4
AOC_ERROR_TITLE_NOT_OPEN -8
AOC_ERROR_ALREADY_OPENED -9
AOC_ERROR_CLOSE_UNK -10
AOC_ERROR_MAX_TITLES_OPENED -11
AOC_ERROR_TITLE_NOT_FOUND -16
AOC_ERROR_INVALID_TITLE -18
AOC_ERROR_TITLE_ALREADY_LOCKED -768
AOC_ERROR_TITLE_ALREADY_UNLOCKED -769
AOC_ERROR_INTERNAL -1024

Structs

AOCTitle

struct AOCTitle
{
	uint64_t titleId;
	uint32_t groupId;
	uint16_t titleVersion;
	char path[88];
	uint8_t padding[2];
}