KallistiOS
##version##
|
VMU Packaging functionality. More...
Go to the source code of this file.
Data Structures | |
struct | vmu_pkg |
VMU Package type. More... | |
struct | vmu_hdr |
Final VMU package type. More... | |
Macros | |
#define | VMUPKG_EC_NONE 0 |
No eyecatch. More... | |
#define | VMUPKG_EC_16BIT 1 |
16-bit ARGB4444 More... | |
#define | VMUPKG_EC_256COL 2 |
256-color palette More... | |
#define | VMUPKG_EC_16COL 3 |
16-color palette More... | |
Typedefs | |
typedef struct vmu_pkg | vmu_pkg_t |
VMU Package type. More... | |
typedef struct vmu_hdr | vmu_hdr_t |
Final VMU package type. More... | |
Functions | |
int | vmu_pkg_build (vmu_pkg_t *src, uint8 **dst, int *dst_size) |
Convert a vmu_pkg_t into an array of uint8s. More... | |
int | vmu_pkg_parse (uint8 *data, vmu_pkg_t *pkg) |
Parse an array of uint8s into a vmu_pkg_t. More... | |
VMU Packaging functionality.
This file provides declarations for managing the headers that must be attached to VMU files for the BIOS to pay attention to them. This does not handle reading/writing files directly.
Final VMU package type.
This structure will be written into the file itself, not vmu_pkg_t.
VMU Package type.
Anyone wanting to package a VMU file should create one of these somewhere; eventually it will be turned into a flat file that you can save using fs_vmu.
Convert a vmu_pkg_t into an array of uint8s.
This function converts a vmu_pkg_t structure into an array of uint8's which may be written to a VMU file via fs_vmu, or whatever.
src | The vmu_pkg_t to convert. |
dst | The buffer (will be allocated for you). |
dst_size | The size of the output. |
Parse an array of uint8s into a vmu_pkg_t.
This function does the opposite of vmu_pkg_build and is used to parse VMU files read in.
data | The buffer to parse. |
pkg | Where to store the vmu_pkg_t. |
-1 | On invalid CRC in the data. |
0 | On success. |