mirror of
https://github.com/MiSTer-devel/Main_MiSTer.git
synced 2026-04-12 03:04:02 +00:00
Saturn: fix the track offset for 2048 byte mode.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user