libdragon
Data Structures | Macros | Functions

ROM bundle support. More...

Data Structures

struct  header_t
 ROMPAK TOC header. More...
 
struct  entry_t
 ROMPAK TOC entry. More...
 

Macros

#define TOC_MAGIC   0x544F4330
 Magic ID "TOC0".
 
#define TOC_ADDR   (0x10001000 + (__rom_end - __libdragon_text_start))
 Physical address of the ROMPAK TOC.
 

Functions

uint32_t rompak_search_ext (const char *ext)
 Search a file in the rompak by extension. More...
 

Detailed Description

ROM bundle support.


Data Structure Documentation

◆ header_t

struct header_t

ROMPAK TOC header.

Data Fields
uint32_t magic Magic (TOC_MAGIC)
uint32_t toc_size Size of the TOC in bytes.
uint32_t entry_size Size of an entry of the TOC (in bytes)
uint32_t num_entries Number of entries in the TOC.

◆ entry_t

struct entry_t

ROMPAK TOC entry.

Data Fields
uint32_t offset Offset of the file in the ROM.
char name[] Name of the file.