From 5ab85ddac3344addbd486e55db34c5ebc142f082 Mon Sep 17 00:00:00 2001 From: Sergiy Dvodnenko Date: Sat, 19 Apr 2025 14:43:16 +0300 Subject: [PATCH] Saturn: fix the track offset for 2048 byte mode. --- support/saturn/saturncdd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support/saturn/saturncdd.cpp b/support/saturn/saturncdd.cpp index a68bbff..f5c1869 100644 --- a/support/saturn/saturncdd.cpp +++ b/support/saturn/saturncdd.cpp @@ -249,7 +249,7 @@ int satcdd_t::LoadCUE(const char* filename) { } } else if (idx == 1) { - this->toc.tracks[this->toc.last].offset += pregap * 2352; + this->toc.tracks[this->toc.last].offset += pregap * this->sectorSize; if (!new_file) { @@ -265,7 +265,7 @@ int satcdd_t::LoadCUE(const char* filename) { else { this->toc.tracks[this->toc.last].start = this->toc.end + pregap; - this->toc.tracks[this->toc.last].offset += this->toc.end * 2352; + this->toc.tracks[this->toc.last].offset += this->toc.end * this->sectorSize; int sectorSize = 2352; if (this->toc.tracks[this->toc.last].type) sectorSize = this->sectorSize;