Correct Princess Maker 2 freeze (TurboGrafx16_MiSTer issue #154) (#439)

Fix off-by-one sector count on end of track for Princess Maker 2; the game constantly checks the subcode Q value to see whether it reached a certain time signature... Main_MiSTer was stopping the track one sector earlier than that sector.
This commit is contained in:
David Shadoff
2021-08-09 02:51:13 -04:00
committed by GitHub
parent f4ea03886c
commit f683849d24

View File

@@ -442,7 +442,7 @@ void pcecdd_t::Update() {
this->CDDAFirst = 0;
if ((this->lba >= this->CDDAEnd) || this->toc.tracks[this->index].type || this->index >= this->toc.last)
if ((this->lba > this->CDDAEnd) || this->toc.tracks[this->index].type || this->index > this->toc.last)
{
if (this->CDDAMode == PCECD_CDDAMODE_LOOP) {
this->lba = this->CDDAStart;