CDImage: Fix incorrect track length

Shouldn't affect much, other than the game properties window.
This commit is contained in:
Connor McLaughlin 2020-07-25 02:36:41 +10:00
parent 10f23667c9
commit 08b26edceb
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ bool CDImageCHD::Open(const char* filename)
// add the track itself
m_tracks.push_back(Track{static_cast<u32>(track_num), disc_lba, static_cast<u32>(m_indices.size()),
static_cast<u32>(frames), mode.value(), control});
static_cast<u32>(frames + pregap_frames), mode.value(), control});
// how many indices in this track?
Index index = {};

View File

@ -158,7 +158,7 @@ bool CDImageCueSheet::OpenAndParse(const char* filename)
// add the track itself
m_tracks.push_back(Track{static_cast<u32>(track_num), disc_lba, static_cast<u32>(m_indices.size()),
static_cast<u32>(track_length), mode, control});
static_cast<u32>(track_length + pregap_frames), mode, control});
// how many indices in this track?
Index last_index;