From f683849d24f752659929232f9a2f896aca2d4020 Mon Sep 17 00:00:00 2001 From: David Shadoff <46657586+dshadoff@users.noreply.github.com> Date: Mon, 9 Aug 2021 02:51:13 -0400 Subject: [PATCH] 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. --- support/pcecd/pcecdd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/pcecd/pcecdd.cpp b/support/pcecd/pcecdd.cpp index 7d747f5..aac0cef 100644 --- a/support/pcecd/pcecdd.cpp +++ b/support/pcecd/pcecdd.cpp @@ -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;