added PicoGetStat() for win32

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@344 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2008-02-03 20:29:22 +00:00
parent 1b0ac8adc9
commit 8e5427a068
2 changed files with 14 additions and 1 deletions

View file

@ -502,6 +502,17 @@ void PicoFrameDrawOnly(void)
for (y=0;y<224;y++) PicoLine(y);
}
int PicoGetStat(pstat_t which)
{
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);
}
return 0;
}
// callback to output message from emu
void (*PicoMessage)(const char *msg)=NULL;