mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 16:15:41 +00:00
CueParser: Ignore zero pregap when index 0 is set
This commit is contained in:
parent
5556d8221b
commit
8f639070c9
|
@ -406,13 +406,6 @@ bool File::CompleteLastTrack(u32 line_number, Common::Error* error)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const MSF* index0 = m_current_track->GetIndex(0);
|
|
||||||
if (index0 && m_current_track->zero_pregap.has_value())
|
|
||||||
{
|
|
||||||
SetError(line_number, error, "Zero pregap and index 0 specified in track %u", m_current_track->number);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// check indices
|
// check indices
|
||||||
for (const auto& [index_number, index_msf] : m_current_track->indices)
|
for (const auto& [index_number, index_msf] : m_current_track->indices)
|
||||||
{
|
{
|
||||||
|
@ -428,6 +421,13 @@ bool File::CompleteLastTrack(u32 line_number, Common::Error* error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const MSF* index0 = m_current_track->GetIndex(0);
|
||||||
|
if (index0 && m_current_track->zero_pregap.has_value())
|
||||||
|
{
|
||||||
|
Log_WarningPrintf("Zero pregap and index 0 specified in track %u, ignoring zero pregap", m_current_track->number);
|
||||||
|
m_current_track->zero_pregap.reset();
|
||||||
|
}
|
||||||
|
|
||||||
m_current_track->start = *index1;
|
m_current_track->start = *index1;
|
||||||
|
|
||||||
m_tracks.push_back(std::move(m_current_track.value()));
|
m_tracks.push_back(std::move(m_current_track.value()));
|
||||||
|
|
Loading…
Reference in a new issue