exheader.h
Go to the documentation of this file.
/**
* @file exheader.h
* @brief NCCH extended header definitions.
*/
#pragma once
#include <3ds/types.h>
/// ARM9 descriptor flags
enum
{
ARM9DESC_MOUNT_NAND = BIT(0), ///< Mount "nand:/"
ARM9DESC_MOUNT_NANDRO_RW = BIT(1), ///< Mount nand:/ro/ as read-write
ARM9DESC_MOUNT_TWLN = BIT(2), ///< Mount "twln:/"
ARM9DESC_MOUNT_WNAND = BIT(3), ///< Mount "wnand:/"
ARM9DESC_MOUNT_CARDSPI = BIT(4), ///< Mount "cardspi:/"
ARM9DESC_USE_SDIF3 = BIT(5), ///< Use SDIF3
ARM9DESC_CREATE_SEED = BIT(6), ///< Create seed (movable.sed)
ARM9DESC_USE_CARD_SPI = BIT(7), ///< Use card SPI, required by multiple pxi:dev commands
ARM9DESC_SD_APPLICATION = BIT(8), ///< SD application (not checked)
ARM9DESC_MOUNT_SDMC_RW = BIT(9), ///< Mount "sdmc:/" as read-write
};
/// Filesystem access flags
enum
{
FSACCESS_CATEGORY_SYSTEM_APPLICATION = BIT(0), ///< Category "system application"
FSACCESS_CATEGORY_HARDWARE_CHECK = BIT(1), ///< Category "hardware check"
FSACCESS_CATEGORY_FILESYSTEM_TOOL = BIT(2), ///< Category "filesystem tool"
FSACCESS_DEBUG = BIT(3), ///< Debug
FSACCESS_TWLCARD_BACKUP = BIT(4), ///< TWLCARD backup
FSACCESS_TWLNAND_DATA = BIT(5), ///< TWLNAND data
FSACCESS_BOSS = BIT(6), ///< BOSS (SpotPass)
FSACCESS_SDMC_RW = BIT(7), ///< SDMC (read-write)
FSACCESS_CORE = BIT(8), ///< Core
FSACCESS_NANDRO_RO = BIT(9), ///< nand:/ro/ (read-only)
FSACCESS_NANDRW = BIT(10), ///< nand:/rw/
FSACCESS_NANDRO_RW = BIT(11), ///< nand:/ro/ (read-write)
FSACCESS_CATEGORY_SYSTEM_SETTINGS = BIT(12), ///< Category "System Settings"
FSACCESS_CARDBOARD = BIT(13), ///< Cardboard (System Transfer)
FSACCESS_EXPORT_IMPORT_IVS = BIT(14), ///< Export/Import IVs (movable.sed)
FSACCESS_SDMC_WO = BIT(15), ///< SDMC (write-only)
FSACCESS_SWITCH_CLEANUP = BIT(16), ///< "Switch cleanup" (3.0+)
FSACCESS_SAVEDATA_MOVE = BIT(17), ///< Savedata move (5.0+)
FSACCESS_SHOP = BIT(18), ///< Shop (5.0+)
FSACCESS_SHELL = BIT(19), ///< Shop (5.0+)
FSACCESS_CATEGORY_HOME_MENU = BIT(20), ///< Category "Home Menu" (6.0+)
FSACCESS_SEEDDB = BIT(21), ///< Seed DB (9.6+)
};
/// The resource limit category of a title
typedef enum
{
RESLIMIT_CATEGORY_APPLICATION = 0, ///< Regular application
RESLIMIT_CATEGORY_SYS_APPLET = 1, ///< System applet
RESLIMIT_CATEGORY_LIB_APPLET = 2, ///< Library applet
RESLIMIT_CATEGORY_OTHER = 3, ///< System modules running inside the BASE memregion
} ResourceLimitCategory;
/// The system mode a title should be launched under
typedef enum
{
SYSMODE_O3DS_PROD = 0, ///< 64MB of usable application memory
SYSMODE_N3DS_PROD = 1, ///< 124MB of usable application memory. Unusable on O3DS
SYSMODE_DEV1 = 2, ///< 97MB/178MB of usable application memory
SYSMODE_DEV2 = 3, ///< 80MB/124MB of usable application memory
SYSMODE_DEV3 = 4, ///< 72MB of usable application memory. Same as "Prod" on N3DS
SYSMODE_DEV4 = 5, ///< 32MB of usable application memory. Same as "Prod" on N3DS
} SystemMode;
/// The system info flags and remaster version of a title
typedef struct
{
u8 reserved[5]; ///< Reserved
bool compress_exefs_code : 1; ///< Whether the ExeFS's .code section is compressed
bool is_sd_application : 1; ///< Whether the title is meant to be used on an SD card
u16 remaster_version; ///< Remaster version
} ExHeader_SystemInfoFlags;
/// Information about a title's section
typedef struct
{
u32 address; ///< The address of the section
u32 num_pages; ///< The number of pages the section occupies
u32 size; ///< The size of the section
} ExHeader_CodeSectionInfo;
/// The name of a title and infomation about its section
typedef struct
{
char name[8]; ///< Title name
ExHeader_SystemInfoFlags flags; ///< System info flags, see @ref ExHeader_SystemInfoFlags
ExHeader_CodeSectionInfo text; ///< .text section info, see @ref ExHeader_CodeSectionInfo
u32 stack_size; ///< Stack size
ExHeader_CodeSectionInfo rodata; ///< .rodata section info, see @ref ExHeader_CodeSectionInfo
u32 reserved; ///< Reserved
ExHeader_CodeSectionInfo data; ///< .data section info, see @ref ExHeader_CodeSectionInfo
u32 bss_size; ///< .bss section size
} ExHeader_CodeSetInfo;
/// The savedata size and jump ID of a title
typedef struct
{
u64 savedata_size; ///< Savedata size
u64 jump_id; ///< Jump ID
u8 reserved[0x30]; ///< Reserved
} ExHeader_SystemInfo;
/// The code set info, dependencies and system info of a title (SCI)
typedef struct
{
ExHeader_CodeSetInfo codeset_info; ///< Code set info, see @ref ExHeader_CodeSetInfo
u64 dependencies[48]; ///< Title IDs of the titles that this program depends on
ExHeader_SystemInfo system_info; ///< System info, see @ref ExHeader_SystemInfo
} ExHeader_SystemControlInfo;
/// The ARM11 filesystem info of a title
typedef struct
{
u64 extdata_id; ///< Extdata ID
u32 system_savedata_ids[2]; ///< IDs of the system savedata accessible by the title
u64 accessible_savedata_ids; ///< IDs of the savedata accessible by the title, 20 bits each, followed by "Use other variation savedata"
u32 fs_access_info; ///< FS access flags
u32 reserved : 24; ///< Reserved
bool no_romfs : 1; ///< Don't use any RomFS
bool use_extended_savedata_access : 1; ///< Use the "extdata_id" field to store 3 additional accessible savedata IDs
} ExHeader_Arm11StorageInfo;
/// The CPU-related and memory-layout-related info of a title
typedef struct
{
u32 core_version; ///< The low title ID of the target firmware
bool use_cpu_clockrate_804MHz : 1; ///< Whether to start the title with the 804MHz clock rate
bool enable_l2c : 1; ///< Whether to start the title with the L2C-310 enabled enabled
u8 flag1_unused : 6; ///< Unused
SystemMode n3ds_system_mode : 4; ///< The system mode to use on N3DS
u8 flag2_unused : 4; ///< Unused
u8 ideal_processor : 2; ///< The ideal processor to start the title on
u8 affinity_mask : 2; ///< The affinity mask of the title
SystemMode o3ds_system_mode : 4; ///< The system mode to use on N3DS
u8 priority; ///< The priority of the title's main thread
} ExHeader_Arm11CoreInfo;
/// The ARM11 system-local capabilities of a title
typedef struct
{
u64 title_id; ///< Title ID
ExHeader_Arm11CoreInfo core_info; ///< Core info, see @ref ExHeader_Arm11CoreInfo
u16 reslimits[16]; ///< Resource limit descriptors, only "CpuTime" (first byte) sems to be used
ExHeader_Arm11StorageInfo storage_info; ///< Storage info, see @ref ExHeader_Arm11StorageInfo
char service_access[34][8]; ///< List of the services the title has access to. Limited to 32 prior to system version 9.3
u8 reserved[15]; ///< Reserved
ResourceLimitCategory reslimit_category; ///< Resource limit category, see @ref ExHeader_Arm11SystemLocalCapabilities
} ExHeader_Arm11SystemLocalCapabilities;
/// The ARM11 kernel capabilities of a title
typedef struct
{
u32 descriptors[28]; ///< ARM11 kernel descriptors, see 3dbrew
u8 reserved[16]; ///< Reserved
} ExHeader_Arm11KernelCapabilities;
/// The ARM9 access control of a title
typedef struct
{
u8 descriptors[15]; ///< Process9 FS descriptors, see 3dbrew
u8 descriptor_version; ///< Descriptor version
} ExHeader_Arm9AccessControl;
/// The access control information of a title
typedef struct
{
ExHeader_Arm11SystemLocalCapabilities local_caps; ///< ARM11 system-local capabilities, see @ref ExHeader_Arm11SystemLocalCapabilities
ExHeader_Arm11KernelCapabilities kernel_caps; ///< ARM11 kernel capabilities, see @ref ExHeader_Arm11SystemLocalCapabilities
ExHeader_Arm9AccessControl access_control; ///< ARM9 access control, see @ref ExHeader_Arm9AccessControl
} ExHeader_AccessControlInfo;
/// Main extended header data, as returned by PXIPM, Loader and FSREG service commands
typedef struct
{
ExHeader_SystemControlInfo sci; ///< System control info, see @ref ExHeader_SystemControlInfo
ExHeader_AccessControlInfo aci; ///< Access control info, see @ref ExHeader_AccessControlInfo
} ExHeader_Info;
/// Extended header access descriptor
typedef struct
{
u8 signature[0x100]; ///< The signature of the access descriptor (RSA-2048-SHA256)
u8 ncchModulus[0x100]; ///< The modulus used for the above signature, with 65537 as public exponent
ExHeader_AccessControlInfo acli; ///< This is compared for equality with the first ACI by Process9, see @ref ExHeader_AccessControlInfo
} ExHeader_AccessDescriptor;
/// The NCCH Extended Header of a title
typedef struct
{
ExHeader_Info info; ///< Main extended header data, see @ref ExHeader_Info
ExHeader_AccessDescriptor access_descriptor; ///< Access descriptor, see @ref ExHeader_AccessDescriptor
} ExHeader;
ResourceLimitCategory
ResourceLimitCategory
The resource limit category of a title.
Definition: exheader.h:53
RESLIMIT_CATEGORY_LIB_APPLET
@ RESLIMIT_CATEGORY_LIB_APPLET
Library applet.
Definition: exheader.h:56
RESLIMIT_CATEGORY_APPLICATION
@ RESLIMIT_CATEGORY_APPLICATION
Regular application.
Definition: exheader.h:54
RESLIMIT_CATEGORY_SYS_APPLET
@ RESLIMIT_CATEGORY_SYS_APPLET
System applet.
Definition: exheader.h:55
RESLIMIT_CATEGORY_OTHER
@ RESLIMIT_CATEGORY_OTHER
System modules running inside the BASE memregion.
Definition: exheader.h:57
SystemMode
SystemMode
The system mode a title should be launched under.
Definition: exheader.h:62
SYSMODE_DEV4
@ SYSMODE_DEV4
32MB of usable application memory. Same as "Prod" on N3DS
Definition: exheader.h:68
SYSMODE_O3DS_PROD
@ SYSMODE_O3DS_PROD
64MB of usable application memory
Definition: exheader.h:63
SYSMODE_N3DS_PROD
@ SYSMODE_N3DS_PROD
124MB of usable application memory. Unusable on O3DS
Definition: exheader.h:64
SYSMODE_DEV1
@ SYSMODE_DEV1
97MB/178MB of usable application memory
Definition: exheader.h:65
SYSMODE_DEV3
@ SYSMODE_DEV3
72MB of usable application memory. Same as "Prod" on N3DS
Definition: exheader.h:67
SYSMODE_DEV2
@ SYSMODE_DEV2
80MB/124MB of usable application memory
Definition: exheader.h:66
FSACCESS_NANDRO_RO
@ FSACCESS_NANDRO_RO
nand:/ro/ (read-only)
Definition: exheader.h:36
FSACCESS_TWLNAND_DATA
@ FSACCESS_TWLNAND_DATA
TWLNAND data.
Definition: exheader.h:32
FSACCESS_NANDRO_RW
@ FSACCESS_NANDRO_RW
nand:/ro/ (read-write)
Definition: exheader.h:38
FSACCESS_CATEGORY_SYSTEM_APPLICATION
@ FSACCESS_CATEGORY_SYSTEM_APPLICATION
Category "system application".
Definition: exheader.h:27
FSACCESS_CATEGORY_HOME_MENU
@ FSACCESS_CATEGORY_HOME_MENU
Category "Home Menu" (6.0+)
Definition: exheader.h:47
FSACCESS_SHELL
@ FSACCESS_SHELL
Shop (5.0+)
Definition: exheader.h:46
FSACCESS_CORE
@ FSACCESS_CORE
Core.
Definition: exheader.h:35
FSACCESS_TWLCARD_BACKUP
@ FSACCESS_TWLCARD_BACKUP
TWLCARD backup.
Definition: exheader.h:31
FSACCESS_SAVEDATA_MOVE
@ FSACCESS_SAVEDATA_MOVE
Savedata move (5.0+)
Definition: exheader.h:44
FSACCESS_SDMC_WO
@ FSACCESS_SDMC_WO
SDMC (write-only)
Definition: exheader.h:42
FSACCESS_NANDRW
@ FSACCESS_NANDRW
nand:/rw/
Definition: exheader.h:37
FSACCESS_SDMC_RW
@ FSACCESS_SDMC_RW
SDMC (read-write)
Definition: exheader.h:34
FSACCESS_CATEGORY_SYSTEM_SETTINGS
@ FSACCESS_CATEGORY_SYSTEM_SETTINGS
Category "System Settings".
Definition: exheader.h:39
FSACCESS_EXPORT_IMPORT_IVS
@ FSACCESS_EXPORT_IMPORT_IVS
Export/Import IVs (movable.sed)
Definition: exheader.h:41
FSACCESS_SWITCH_CLEANUP
@ FSACCESS_SWITCH_CLEANUP
"Switch cleanup" (3.0+)
Definition: exheader.h:43
FSACCESS_CATEGORY_HARDWARE_CHECK
@ FSACCESS_CATEGORY_HARDWARE_CHECK
Category "hardware check".
Definition: exheader.h:28
FSACCESS_SHOP
@ FSACCESS_SHOP
Shop (5.0+)
Definition: exheader.h:45
FSACCESS_BOSS
@ FSACCESS_BOSS
BOSS (SpotPass)
Definition: exheader.h:33
FSACCESS_CARDBOARD
@ FSACCESS_CARDBOARD
Cardboard (System Transfer)
Definition: exheader.h:40
FSACCESS_DEBUG
@ FSACCESS_DEBUG
Debug.
Definition: exheader.h:30
FSACCESS_CATEGORY_FILESYSTEM_TOOL
@ FSACCESS_CATEGORY_FILESYSTEM_TOOL
Category "filesystem tool".
Definition: exheader.h:29
FSACCESS_SEEDDB
@ FSACCESS_SEEDDB
Seed DB (9.6+)
Definition: exheader.h:48
ARM9DESC_MOUNT_NANDRO_RW
@ ARM9DESC_MOUNT_NANDRO_RW
Mount nand:/ro/ as read-write.
Definition: exheader.h:13
ARM9DESC_SD_APPLICATION
@ ARM9DESC_SD_APPLICATION
SD application (not checked)
Definition: exheader.h:20
ARM9DESC_MOUNT_NAND
@ ARM9DESC_MOUNT_NAND
Mount "nand:/".
Definition: exheader.h:12
ARM9DESC_MOUNT_SDMC_RW
@ ARM9DESC_MOUNT_SDMC_RW
Mount "sdmc:/" as read-write.
Definition: exheader.h:21
ARM9DESC_MOUNT_WNAND
@ ARM9DESC_MOUNT_WNAND
Mount "wnand:/".
Definition: exheader.h:15
ARM9DESC_MOUNT_CARDSPI
@ ARM9DESC_MOUNT_CARDSPI
Mount "cardspi:/".
Definition: exheader.h:16
ARM9DESC_USE_CARD_SPI
@ ARM9DESC_USE_CARD_SPI
Use card SPI, required by multiple pxi:dev commands.
Definition: exheader.h:19
ARM9DESC_USE_SDIF3
@ ARM9DESC_USE_SDIF3
Use SDIF3.
Definition: exheader.h:17
ARM9DESC_CREATE_SEED
@ ARM9DESC_CREATE_SEED
Create seed (movable.sed)
Definition: exheader.h:18
ARM9DESC_MOUNT_TWLN
@ ARM9DESC_MOUNT_TWLN
Mount "twln:/".
Definition: exheader.h:14
ExHeader_AccessControlInfo
The access control information of a title.
Definition: exheader.h:173
ExHeader_AccessControlInfo::local_caps
ExHeader_Arm11SystemLocalCapabilities local_caps
ARM11 system-local capabilities, see ExHeader_Arm11SystemLocalCapabilities.
Definition: exheader.h:174
ExHeader_AccessControlInfo::access_control
ExHeader_Arm9AccessControl access_control
ARM9 access control, see ExHeader_Arm9AccessControl.
Definition: exheader.h:176
ExHeader_AccessControlInfo::kernel_caps
ExHeader_Arm11KernelCapabilities kernel_caps
ARM11 kernel capabilities, see ExHeader_Arm11SystemLocalCapabilities.
Definition: exheader.h:175
ExHeader_AccessDescriptor
Extended header access descriptor.
Definition: exheader.h:188
ExHeader_AccessDescriptor::acli
ExHeader_AccessControlInfo acli
This is compared for equality with the first ACI by Process9, see ExHeader_AccessControlInfo.
Definition: exheader.h:191
ExHeader_Arm11CoreInfo
The CPU-related and memory-layout-related info of a title.
Definition: exheader.h:132
ExHeader_Arm11CoreInfo::flag1_unused
u8 flag1_unused
Unused.
Definition: exheader.h:136
ExHeader_Arm11CoreInfo::ideal_processor
u8 ideal_processor
The ideal processor to start the title on.
Definition: exheader.h:139
ExHeader_Arm11CoreInfo::n3ds_system_mode
SystemMode n3ds_system_mode
The system mode to use on N3DS.
Definition: exheader.h:137
ExHeader_Arm11CoreInfo::enable_l2c
bool enable_l2c
Whether to start the title with the L2C-310 enabled enabled.
Definition: exheader.h:135
ExHeader_Arm11CoreInfo::flag2_unused
u8 flag2_unused
Unused.
Definition: exheader.h:138
ExHeader_Arm11CoreInfo::core_version
u32 core_version
The low title ID of the target firmware.
Definition: exheader.h:133
ExHeader_Arm11CoreInfo::affinity_mask
u8 affinity_mask
The affinity mask of the title.
Definition: exheader.h:140
ExHeader_Arm11CoreInfo::priority
u8 priority
The priority of the title's main thread.
Definition: exheader.h:142
ExHeader_Arm11CoreInfo::use_cpu_clockrate_804MHz
bool use_cpu_clockrate_804MHz
Whether to start the title with the 804MHz clock rate.
Definition: exheader.h:134
ExHeader_Arm11CoreInfo::o3ds_system_mode
SystemMode o3ds_system_mode
The system mode to use on N3DS.
Definition: exheader.h:141
ExHeader_Arm11KernelCapabilities
The ARM11 kernel capabilities of a title.
Definition: exheader.h:159
ExHeader_Arm11StorageInfo
The ARM11 filesystem info of a title.
Definition: exheader.h:120
ExHeader_Arm11StorageInfo::no_romfs
bool no_romfs
Don't use any RomFS.
Definition: exheader.h:126
ExHeader_Arm11StorageInfo::reserved
u32 reserved
Reserved.
Definition: exheader.h:125
ExHeader_Arm11StorageInfo::accessible_savedata_ids
u64 accessible_savedata_ids
IDs of the savedata accessible by the title, 20 bits each, followed by "Use other variation savedata"...
Definition: exheader.h:123
ExHeader_Arm11StorageInfo::fs_access_info
u32 fs_access_info
FS access flags.
Definition: exheader.h:124
ExHeader_Arm11StorageInfo::extdata_id
u64 extdata_id
Extdata ID.
Definition: exheader.h:121
ExHeader_Arm11StorageInfo::use_extended_savedata_access
bool use_extended_savedata_access
Use the "extdata_id" field to store 3 additional accessible savedata IDs.
Definition: exheader.h:127
ExHeader_Arm11SystemLocalCapabilities
The ARM11 system-local capabilities of a title.
Definition: exheader.h:147
ExHeader_Arm11SystemLocalCapabilities::storage_info
ExHeader_Arm11StorageInfo storage_info
Storage info, see ExHeader_Arm11StorageInfo.
Definition: exheader.h:151
ExHeader_Arm11SystemLocalCapabilities::core_info
ExHeader_Arm11CoreInfo core_info
Core info, see ExHeader_Arm11CoreInfo.
Definition: exheader.h:149
ExHeader_Arm11SystemLocalCapabilities::title_id
u64 title_id
Title ID.
Definition: exheader.h:148
ExHeader_Arm11SystemLocalCapabilities::reslimit_category
ResourceLimitCategory reslimit_category
Resource limit category, see ExHeader_Arm11SystemLocalCapabilities.
Definition: exheader.h:154
ExHeader_Arm9AccessControl
The ARM9 access control of a title.
Definition: exheader.h:166
ExHeader_Arm9AccessControl::descriptor_version
u8 descriptor_version
Descriptor version.
Definition: exheader.h:168
ExHeader_CodeSectionInfo
Information about a title's section.
Definition: exheader.h:83
ExHeader_CodeSectionInfo::size
u32 size
The size of the section.
Definition: exheader.h:86
ExHeader_CodeSectionInfo::num_pages
u32 num_pages
The number of pages the section occupies.
Definition: exheader.h:85
ExHeader_CodeSectionInfo::address
u32 address
The address of the section.
Definition: exheader.h:84
ExHeader_CodeSetInfo
The name of a title and infomation about its section.
Definition: exheader.h:91
ExHeader_CodeSetInfo::flags
ExHeader_SystemInfoFlags flags
System info flags, see ExHeader_SystemInfoFlags.
Definition: exheader.h:93
ExHeader_CodeSetInfo::stack_size
u32 stack_size
Stack size.
Definition: exheader.h:95
ExHeader_CodeSetInfo::reserved
u32 reserved
Reserved.
Definition: exheader.h:97
ExHeader_CodeSetInfo::text
ExHeader_CodeSectionInfo text
.text section info, see ExHeader_CodeSectionInfo
Definition: exheader.h:94
ExHeader_CodeSetInfo::bss_size
u32 bss_size
.bss section size
Definition: exheader.h:99
ExHeader_CodeSetInfo::data
ExHeader_CodeSectionInfo data
.data section info, see ExHeader_CodeSectionInfo
Definition: exheader.h:98
ExHeader_CodeSetInfo::rodata
ExHeader_CodeSectionInfo rodata
.rodata section info, see ExHeader_CodeSectionInfo
Definition: exheader.h:96
ExHeader_Info
Main extended header data, as returned by PXIPM, Loader and FSREG service commands.
Definition: exheader.h:181
ExHeader_Info::sci
ExHeader_SystemControlInfo sci
System control info, see ExHeader_SystemControlInfo.
Definition: exheader.h:182
ExHeader_Info::aci
ExHeader_AccessControlInfo aci
Access control info, see ExHeader_AccessControlInfo.
Definition: exheader.h:183
ExHeader_SystemControlInfo
The code set info, dependencies and system info of a title (SCI)
Definition: exheader.h:112
ExHeader_SystemControlInfo::codeset_info
ExHeader_CodeSetInfo codeset_info
Code set info, see ExHeader_CodeSetInfo.
Definition: exheader.h:113
ExHeader_SystemControlInfo::system_info
ExHeader_SystemInfo system_info
System info, see ExHeader_SystemInfo.
Definition: exheader.h:115
ExHeader_SystemInfoFlags
The system info flags and remaster version of a title.
Definition: exheader.h:74
ExHeader_SystemInfoFlags::is_sd_application
bool is_sd_application
Whether the title is meant to be used on an SD card.
Definition: exheader.h:77
ExHeader_SystemInfoFlags::compress_exefs_code
bool compress_exefs_code
Whether the ExeFS's .code section is compressed.
Definition: exheader.h:76
ExHeader_SystemInfoFlags::remaster_version
u16 remaster_version
Remaster version.
Definition: exheader.h:78
ExHeader_SystemInfo
The savedata size and jump ID of a title.
Definition: exheader.h:104
ExHeader_SystemInfo::savedata_size
u64 savedata_size
Savedata size.
Definition: exheader.h:105
ExHeader_SystemInfo::jump_id
u64 jump_id
Jump ID.
Definition: exheader.h:106
ExHeader
The NCCH Extended Header of a title.
Definition: exheader.h:196
ExHeader::info
ExHeader_Info info
Main extended header data, see ExHeader_Info.
Definition: exheader.h:197
ExHeader::access_descriptor
ExHeader_AccessDescriptor access_descriptor
Access descriptor, see ExHeader_AccessDescriptor.
Definition: exheader.h:198
types.h
Various system types.
BIT
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:47
u64
uint64_t u64
64-bit unsigned integer
Definition: types.h:24
u8
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
u16
uint16_t u16
16-bit unsigned integer
Definition: types.h:22
u32
uint32_t u32
32-bit unsigned integer
Definition: types.h:23