X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=pico%2Fpico.h;h=7436a605aaf4a4ac4ae32eb3fee03b8e5322d2a9;hb=460603fa8119a41192ebdc7012d120f6263a2bce;hp=ba7349e3e716f8a434fc14bc65c116ac22182253;hpb=bcc9eda077d079ea5005d60ac58f9fe0d5105abe;p=picodrive.git diff --git a/pico/pico.h b/pico/pico.h index ba7349e..7436a60 100644 --- a/pico/pico.h +++ b/pico/pico.h @@ -57,6 +57,7 @@ extern int PicoOpt; // bitfield #define PAHW_32X (1<<1) #define PAHW_SVP (1<<2) #define PAHW_PICO (1<<3) +#define PAHW_SMS (1<<4) extern int PicoAHW; // Pico active hw extern int PicoVer; extern int PicoSkipFrame; // skip rendering frame, but still do sound (if enabled) and emulation stuff @@ -128,17 +129,18 @@ typedef struct void *param; /* additional file related field */ unsigned int size; /* size */ pm_type type; + char ext[4]; } 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 PicoCartLoad(pm_file *f,unsigned char **prom,unsigned int *psize,int is_sms); int PicoCartInsert(unsigned char *rom,unsigned int romsize); void Byteswap(unsigned char *data,int len); void PicoCartUnload(void); extern void (*PicoCartLoadProgressCB)(int percent); -extern void (*PicoCDLoadProgressCB)(int percent); +extern void (*PicoCDLoadProgressCB)(const char *fname, int percent); // Draw.c void PicoDrawSetColorFormat(int which); // 0=BGR444, 1=RGB555, 2=8bit(HighPal pal) @@ -169,6 +171,8 @@ extern int PicoDrawMask; #define PDRAW_SONIC_MODE (1<<5) // mid-frame palette changes for 8bit renderer #define PDRAW_PLANE_HI_PRIO (1<<6) // have layer with all hi prio tiles (mk3) #define PDRAW_SHHI_DONE (1<<7) // layer sh/hi already processed +#define PDRAW_240LINES (1<<8) // 240 line display (224 if not set) +#define PDRAW_192LINES (1<<9) // 192 line display (for SMS games) extern int rendstatus; extern unsigned short HighPal[0x100];