Skip to content

Commit

Permalink
actually use starting track set in nsf files instead of always starti…
Browse files Browse the repository at this point in the history
…ng with track 1
  • Loading branch information
FIX94 committed Jul 17, 2018
1 parent f5d72bb commit c732d28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mapper/nsf.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ void nsfinit(uint8_t *nsfBIN, uint32_t nsfBINsize, uint8_t *prgRAMin, uint32_t p
nsf.bankEnable = true;
}
if(nsf.bankEnable) nsf.loadAddr &= 0xFFF;
nsf.curTrack = 1;
nsf.trackTotal = nsfBIN[6];
nsf.curTrack = nsfBIN[7];
if(nsf.curTrack > nsf.trackTotal)
nsf.curTrack = 1;
memset(nsf.prevValReads, 0, 8);
printf("NSF Player inited in %s Mode (VRC6 %s, VRC7 %s, FDS %s, MMC5 %s, N163 %s, S5B %s) %s banking\n", nesPAL ? "PAL" : "NTSC",
onOff(audioExpansion&EXP_VRC6), onOff(audioExpansion&EXP_VRC7), onOff(audioExpansion&EXP_FDS), onOff(audioExpansion&EXP_MMC5),
Expand Down

0 comments on commit c732d28

Please sign in to comment.