![]() |
libdragon
|
Functions | |
| void | __asset_init_compression_lvl2 (void) |
| Initialize compression level 2 (APLIB) | |
| void | __asset_init_compression_lvl3 (void) |
| Initialize compression level 3 (SHRINKLER) | |
| int | must_open (const char *fn) |
| Open a file and assert on error. | |
| FILE * | must_fopen (const char *fn) |
| Open a file as FILE* and assert on error. | |
| void * | asset_load (const char *fn, int *sz) |
| Load an asset file (possibly uncompressing it) | |
| void * asset_load | ( | const char * | fn, |
| int * | sz | ||
| ) |
Load an asset file (possibly uncompressing it)
This function loads a file from a file system (eg: from ROM or SD). If the file was compressed using the mkasset tool, it will be automatically uncompressed.
| fn | Filename to load (including filesystem prefix, eg: "rom:/foo.dat") |
| sz | If not NULL, this will be filed with the uncompressed size of the loaded file |