mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-10-27 00:29:39 -04:00
support for zipped ISOs
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@65 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
b67ef287e7
commit
83bd0b76ab
17 changed files with 413 additions and 156 deletions
20
Pico/Pico.h
20
Pico/Pico.h
|
|
@ -62,10 +62,24 @@ extern areaclose *areaClose;
|
|||
extern void (*PicoStateProgressCB)(const char *str);
|
||||
|
||||
// Cart.c
|
||||
int PicoCartLoad(FILE *f,unsigned char **prom,unsigned int *psize);
|
||||
typedef enum
|
||||
{
|
||||
PMT_UNCOMPRESSED = 0,
|
||||
PMT_ZIP
|
||||
} pm_type;
|
||||
typedef struct
|
||||
{
|
||||
void *file; /* file handle */
|
||||
void *param; /* additional file related field */
|
||||
unsigned int size; /* size */
|
||||
pm_type type;
|
||||
} pm_file;
|
||||
pm_file *pm_open(const char *path);
|
||||
size_t pm_read(void *ptr, size_t bytes, pm_file *stream);
|
||||
int pm_seek(pm_file *stream, long offset, int whence);
|
||||
int pm_close(pm_file *fp);
|
||||
int PicoCartLoad(pm_file *f,unsigned char **prom,unsigned int *psize);
|
||||
int PicoCartInsert(unsigned char *rom,unsigned int romsize);
|
||||
// notaz
|
||||
int CartLoadZip(const char *fname, unsigned char **prom, unsigned int *psize);
|
||||
void Byteswap(unsigned char *data,int len);
|
||||
// anotherguest
|
||||
int PicoUnloadCart(unsigned char* romdata);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue