34 uint8_t ncch_raw[0x200];
37 uint32_t media_unit_size;
io interface object for accessing 3DSS game carts.
Definition: ctr_cart_interface.h:27
uint64_t ctr_cart_interface_disk_size(void *io)
Returns the size of the underlying disk for the given io interface.
int ctr_cart_interface_noop_write(void *io, const void *buffer, size_t buffer_size, uint64_t position)
Writes bytes to the given io interface. Not possible for carts.
bool ctr_cart_interface_initialize(ctr_cart_interface *cart)
Initialize the given 3DS cart io interface object.
bool ctr_cart_inserted(void)
Returns whether a cart is inserted or not.
int ctr_cart_raw_interface_read(void *io, void *buffer, size_t buffer_size, uint64_t position, size_t count)
Reads bytes from the given io interface.
size_t ctr_cart_interface_sector_size(void *io)
Returns the size of the sectors used by the io interface. This is cart dependent, althoug to date mos...
Virtual table for io interface dispatching.
Definition: ctr_io_interface.h:89
int ctr_cart_interface_read_sector(void *io, void *buffer, size_t buffer_size, size_t sector, size_t count)
Reads sectors from the given io interface.
int ctr_cart_interface_noop_write_sector(void *io, const void *buffer, size_t buffer_size, size_t sector)
Writes sectors from the given io interface. Not possible for carts.
int ctr_cart_raw_interface_read_sector(void *io, void *buffer, size_t buffer_size, size_t sector, size_t count)
Reads sectors from the given io interface.
int ctr_cart_interface_read(void *io, void *buffer, size_t buffer_size, uint64_t position, size_t count)
Reads bytes from the given io interface.