X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FPico.h;h=7e2ec691364b985ca5fcf867efc54f94900f5e1e;hb=053fd9b42f2cf38194f78e37c373363fc9cb9933;hp=0ae2544412d821630717da6c22a8f1a09531c21b;hpb=ed367a3f7c2061905d40a26341abbf087a2a168f;p=picodrive.git diff --git a/Pico/Pico.h b/Pico/Pico.h index 0ae2544..7e2ec69 100644 --- a/Pico/Pico.h +++ b/Pico/Pico.h @@ -47,11 +47,17 @@ void mp3_update(int *buffer, int length, int stereo); #define POPT_DIS_VDP_FIFO (1<<16) // 0x 0000 #define POPT_EN_SVP_DRC (1<<17) #define POPT_DIS_SPRITE_LIM (1<<18) +#define POPT_DIS_IDLE_DET (1<<19) extern int PicoOpt; // bitfield +#define PAHW_MCD (1<<0) +#define PAHW_32X (1<<1) +#define PAHW_SVP (1<<2) +#define PAHW_PICO (1<<3) +extern int PicoAHW; // Pico active hw extern int PicoVer; -extern int PicoSkipFrame; // skip rendering frame, but still do sound (if enabled) and emulation stuff +extern int PicoSkipFrame; // skip rendering frame, but still do sound (if enabled) and emulation stuff extern int PicoRegionOverride; // override the region detection 0: auto, 1: Japan NTSC, 2: Japan PAL, 4: US, 8: Europe -extern int PicoAutoRgnOrder; // packed priority list of regions, for example 0x148 means this detection order: EUR, USA, JAP +extern int PicoAutoRgnOrder; // packed priority list of regions, for example 0x148 means this detection order: EUR, USA, JAP extern int PicoSVPCycles; int PicoInit(void); void PicoExit(void); @@ -62,8 +68,9 @@ void PicoFrameDrawOnly(void); extern int PicoPad[2]; // Joypads, format is MXYZ SACB RLDU extern void (*PicoWriteSound)(int len); // called once per frame at the best time to send sound buffer (PsndOut) to hardware extern void (*PicoMessage)(const char *msg); // callback to output text message from emu -typedef enum { PS_PAL, PS_40_CELL, PS_240_LINES } pstat_t; -int PicoGetStat(pstat_t which); +typedef enum { PI_ROM, PI_ISPAL, PI_IS40_CELL, PI_IS240_LINES } pint_t; +typedef union { int vint; void *vptr; } pint_ret_t; +void PicoGetInternal(pint_t which, pint_ret_t *ret); // cd/Pico.c extern void (*PicoMCDopenTray)(void); @@ -77,7 +84,8 @@ typedef struct int pen_pos[2]; int page; // internal - int fifo_bytes; // free bytes in FIFO + int fifo_bytes; // bytes in FIFO + int fifo_bytes_prev; int fifo_line_bytes; // float part, << 16 int line_counter; unsigned short r1, r12;