Skip to content

Commit

Permalink
Add proper detection of PAL systems
Browse files Browse the repository at this point in the history
  • Loading branch information
viciious committed Jun 12, 2024
1 parent 7b90f13 commit d5a8df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-md/vgm.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ void vgm_play_samples(int offset, int length, int freq)
if (dac_freq != freq)
{
int cycle;
int ntsc = 1;
int ntsc = *(volatile uint16_t *)0xC00004 & 1 == 0; // check VDP control port value

dac_freq = freq;
if (ntsc)
Expand Down

0 comments on commit d5a8df3

Please sign in to comment.