mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
added PicoGetStat() for win32
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@344 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
1b0ac8adc9
commit
8e5427a068
2 changed files with 14 additions and 1 deletions
11
Pico/Pico.c
11
Pico/Pico.c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue