CDImage: Set SubQ control for lead-out to last index SubQ

This commit is contained in:
Connor McLaughlin 2020-05-08 15:41:16 +10:00
parent 9539ce032b
commit c3c8df14ea

View file

@ -259,8 +259,10 @@ void CDImage::AddLeadOutIndex()
Index index = {};
index.start_lba_on_disc = m_lba_count;
index.length = LEAD_OUT_SECTOR_COUNT;
index.track_number = 0xAA;
index.track_number = LEAD_OUT_TRACK_NUMBER;
index.index_number = 0;
if (!m_indices.empty())
index.control.bits = m_indices.back().control.bits;
m_indices.push_back(index);
}