mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 15:48:05 -04:00
1.45a Pico win32, code move
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@457 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
582890c000
commit
4609d0cdb8
9 changed files with 158 additions and 67 deletions
10
Pico/Pico.c
10
Pico/Pico.c
|
@ -541,15 +541,15 @@ void PicoFrameDrawOnly(void)
|
|||
for (y=0;y<224;y++) PicoLine(y);
|
||||
}
|
||||
|
||||
int PicoGetStat(pstat_t which)
|
||||
void PicoGetInternal(pint_t which, pint_ret_t *r)
|
||||
{
|
||||
switch (which)
|
||||
{
|
||||
case PS_PAL: return Pico.m.pal;
|
||||
case PS_40_CELL: return Pico.video.reg[12]&1;
|
||||
case PS_240_LINES: return Pico.m.pal && (Pico.video.reg[1]&8);
|
||||
case PI_ROM: r->vptr = Pico.rom; break;
|
||||
case PI_ISPAL: r->vint = Pico.m.pal; break;
|
||||
case PI_IS40_CELL: r->vint = Pico.video.reg[12]&1; break;
|
||||
case PI_IS240_LINES: r->vint = Pico.m.pal && (Pico.video.reg[1]&8); break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// callback to output message from emu
|
||||
|
|
|
@ -67,8 +67,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue