CDImage: Fix incorrect track length
Shouldn't affect much, other than the game properties window.
This commit is contained in:
parent
10f23667c9
commit
08b26edceb
|
@ -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 = {};
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue