Mercurial > repos > blastem
diff system.h @ 2438:bed4d3db8a3f
More flexible loading of Pico storyware assets
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 11 Feb 2024 11:04:39 -0800 |
parents | 65c2e4d990cc |
children | cb62730d5c99 |
line wrap: on
line diff
--- a/system.h Sat Feb 10 17:46:30 2024 -0800 +++ b/system.h Sun Feb 11 11:04:39 2024 -0800 @@ -4,6 +4,7 @@ #include <stdint.h> #include <stdio.h> #include "flac.h" +#include "zip.h" typedef struct system_header system_header; typedef struct system_media system_media; @@ -138,6 +139,7 @@ system_media *chain; track_info *tracks; uint8_t *tmp_buffer; + zip_file *zip; seek_fun seek; read_fun read; read_fun read_subcodes; @@ -157,5 +159,6 @@ system_header *alloc_config_system(system_type stype, system_media *media, uint32_t opts, uint8_t force_region); system_header *alloc_config_player(system_type stype, event_reader *reader); void system_request_exit(system_header *system, uint8_t force_release); +void* load_media_subfile(const system_media *media, char *path, uint32_t *sizeout); #endif //SYSTEM_H_