wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
mcp.h File Reference
#include <wut.h>
Include dependency graph for mcp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MCPDevice
 
struct  MCPInstallInfo
 
struct  MCPInstallProgress
 
struct  MCPInstallTitleInfo
 
struct  MCPSysProdSettings
 
struct  MCPSystemVersion
 
struct  MCPTitleListType
 

Typedefs

typedef int32_t MCPError
 
typedef struct MCPDevice MCPDevice
 
typedef struct MCPDeviceList MCPDeviceList
 
typedef struct MCPInstallInfo MCPInstallInfo
 
typedef struct MCPInstallProgress MCPInstallProgress
 
typedef struct MCPInstallTitleInfo MCPInstallTitleInfo
 
typedef struct MCPSysProdSettings MCPSysProdSettings
 
typedef struct MCPSystemVersion MCPSystemVersion
 
typedef struct MCPTitleListType MCPTitleListType
 
typedef enum MCPAppType MCPAppType
 
typedef enum MCPDeviceType MCPDeviceType
 
typedef enum MCPDeviceFlags MCPDeviceFlags
 
typedef enum MCPInstallTarget MCPInstallTarget
 
typedef enum MCPRegion MCPRegion
 
typedef enum MCPCompatAVFile MCPCompatAVFile
 

Enumerations

enum  MCPAppType {
  MCP_APP_TYPE_GAME_UPDATE = 0x0800001B ,
  MCP_APP_TYPE_GAME_DLC = 0x0800000E ,
  MCP_APP_TYPE_BOOT1 = 0x10000009 ,
  MCP_APP_TYPE_SYSTEM_LIBRARIES = 0x1000000A ,
  MCP_APP_TYPE_BLUETOOTH_FIRMWARE = 0x10000012 ,
  MCP_APP_TYPE_DRC_FIRMWARE = 0x10000013 ,
  MCP_APP_TYPE_DRH_FIRMWARE = 0x10000014 ,
  MCP_APP_TYPE_SYSTEM_VERSION = 0x10000015 ,
  MCP_APP_TYPE_DRC_LANGUAGE = 0x1000001A ,
  MCP_APP_TYPE_EXCEPTIONS_DATA = 0x18000010 ,
  MCP_APP_TYPE_SHARED_DATA = 0x1800001C ,
  MCP_APP_TYPE_CERT_STORE = 0x1800001E ,
  MCP_APP_TYPE_PATCH_MAP_DATA = 0x18000023 ,
  MCP_APP_TYPE_WAGONU_MIGRATION_LIST = 0x18000029 ,
  MCP_APP_TYPE_CAFFEINE_TITLE_LIST = 0x18000030 ,
  MCP_APP_TYPE_MCP_TITLE_LIST = 0x18000031 ,
  MCP_APP_TYPE_GAME = 0x80000000 ,
  MCP_APP_TYPE_GAME_WII = 0x8000002E ,
  MCP_APP_TYPE_SYSTEM_MENU = 0x90000001 ,
  MCP_APP_TYPE_SYSTEM_UPDATER = 0x9000000B ,
  MCP_APP_TYPE_SYSTEM_APPS = 0x90000020 ,
  MCP_APP_TYPE_ACCOUNT_APPS = 0x90000021 ,
  MCP_APP_TYPE_SYSTEM_SETTINGS = 0x90000022 ,
  MCP_APP_TYPE_ECO_PROCESS = 0x9000002F ,
  MCP_APP_TYPE_EMANUAL = 0xD0000003 ,
  MCP_APP_TYPE_HOME_MENU = 0xD0000004 ,
  MCP_APP_TYPE_ERROR_DISPLAY = 0xD0000005 ,
  MCP_APP_TYPE_BROWSER = 0xD0000006 ,
  MCP_APP_TYPE_MIIVERSE_POST = 0xD000000D ,
  MCP_APP_TYPE_MIIVERSE = 0xD0000016 ,
  MCP_APP_TYPE_ESHOP = 0xD0000017 ,
  MCP_APP_TYPE_FRIEND_LIST = 0xD0000018 ,
  MCP_APP_TYPE_DOWNLOAD_MANAGEMENT = 0xD0000019 ,
  MCP_APP_TYPE_AOC_OVERLAY = 0xD000002C ,
  MCP_APP_TYPE_AMIIBO_SETTINGS = 0xD0000033
}
 
enum  MCPDeviceType {
  MCP_DEVICE_TYPE_AUTO = 1 ,
  MCP_DEVICE_TYPE_ODD = 2 ,
  MCP_DEVICE_TYPE_MLC = 3 ,
  MCP_DEVICE_TYPE_USB = 4
}
 
enum  MCPDeviceFlags {
  MCP_DEVICE_FLAG_UNK_1 = 0x1 ,
  MCP_DEVICE_FLAG_UNK_2 = 0x2 ,
  MCP_DEVICE_FLAG_UNK_4 = 0x4 ,
  MCP_DEVICE_FLAG_UNK_8 = 0x8
}
 
enum  MCPInstallTarget {
  MCP_INSTALL_TARGET_MLC = 0 ,
  MCP_INSTALL_TARGET_USB = 1
}
 
enum  MCPRegion {
  MCP_REGION_JAPAN = 0x01 ,
  MCP_REGION_USA = 0x02 ,
  MCP_REGION_EUROPE = 0x04 ,
  MCP_REGION_CHINA = 0x10 ,
  MCP_REGION_KOREA = 0x20 ,
  MCP_REGION_TAIWAN = 0x40
}
 
enum  MCPCompatAVFile {
  MCP_COMPAT_AV_FILE_DMCU = 0x00 ,
  MCP_COMPAT_AV_FILE_DEINT = 0x01
}
 

Functions

MCPError MCP_Open ()
 
MCPError MCP_Close (int handle)
 
MCPError MCP_DeviceList (int handle, int *numDevices, MCPDevice *outDeviceList, uint32_t deviceListSizeInBytes)
 
MCPError MCP_FullDeviceList (int handle, int *numDevices, MCPDevice *outDeviceList, uint32_t deviceListSizeInBytes)
 
MCPError MCP_GetOwnTitleInfo (int32_t handle, MCPTitleListType *titleInfo)
 
MCPError MCP_GetSysProdSettings (int32_t handle, MCPSysProdSettings *settings)
 
MCPError MCP_GetSystemVersion (int32_t handle, MCPSystemVersion *systemVersion)
 
MCPError MCP_GetTitleId (int32_t handle, uint64_t *outTitleId)
 
MCPError MCP_GetTitleInfo (int32_t handle, uint64_t titleId, MCPTitleListType *titleInfo)
 
MCPError MCP_InstallSetTargetDevice (int handle, MCPInstallTarget device)
 
MCPError MCP_InstallGetTargetDevice (int handle, MCPInstallTarget *deviceOut)
 
MCPError MCP_InstallSetTargetUsb (int handle, int usb)
 
MCPError MCP_InstallGetInfo (int handle, const char *path, MCPInstallInfo *out)
 
MCPError MCP_InstallTitleAsync (int handle, const char *path, MCPInstallTitleInfo *out)
 
MCPError MCP_InstallGetProgress (int handle, MCPInstallProgress *installProgressOut)
 
MCPError MCP_InstallTitleAbort (int handle)
 
MCPError MCP_TitleCount (int32_t handle)
 
MCPError MCP_TitleList (int32_t handle, uint32_t *outTitleCount, MCPTitleListType *titleList, uint32_t titleListSizeBytes)
 
MCPError MCP_TitleListByAppType (int32_t handle, MCPAppType appType, uint32_t *outTitleCount, MCPTitleListType *titleList, uint32_t titleListSizeBytes)
 
MCPError MCP_TitleListByUniqueId (int32_t handle, uint32_t uniqueId, uint32_t *outTitleCount, MCPTitleListType *titleList, uint32_t titleListSizeBytes)
 
MCPError MCP_TitleListByDevice (int32_t handle, const char *deviceName, uint32_t *outTitleCount, MCPTitleListType *titleList, uint32_t titleListSizeBytes)
 
MCPError MCP_TitleListByDeviceType (int32_t handle, MCPDeviceType deviceType, uint32_t *outTitleCount, MCPTitleListType *titleList, uint32_t titleListSizeBytes)
 
MCPError MCP_TitleListByAppAndDevice (int32_t handle, MCPAppType appType, const char *deviceName, uint32_t *outTitleCount, MCPTitleListType *titleList, uint32_t titleListSizeBytes)
 
MCPError MCP_TitleListByAppAndDeviceType (int32_t handle, MCPAppType appType, MCPDeviceType deviceType, uint32_t *outTitleCount, MCPTitleListType *titleList, uint32_t titleListSizeBytes)
 
MCPError MCP_TitleListByUniqueIdAndIndexedDeviceAndAppType (int32_t handle, uint32_t uniqueId, const char *indexedDevice, uint8_t unk0x60, MCPAppType appType, uint32_t *outTitleCount, MCPTitleListType *titleList, uint32_t titleListSizeBytes)
 
MCPError MCP_UninstallTitleAsync (int32_t handle, const char *path, MCPInstallTitleInfo *out)
 
MCPError MCP_CompatLoadAVFile (int32_t handle, void *ptr, uint32_t *size, MCPCompatAVFile file)
 
MCPError MCP_TriggerCrashLogCollection (int32_t handle)
 Saves the current Cafe log to the SLC logs directory. More...
 
MCPError MCP_ChangeEcoSettings (int32_t handle, uint32_t enable, uint32_t maxOnTime, uint16_t defaultOffTime)
 Sets values to /storage_slc/sys/config/eco.xml. More...
 
static const char * MCP_GetDeviceNameByDeviceType (MCPDeviceType deviceType)