mirror of
https://github.com/stenzek/duckstation.git
synced 2026-10-29 13:08:21 +01:00
CDImageCCD: Fix LBA count including pregaps twice
Track start is index 1 but length includes the pregap, so the lead-out position reported by GetTD was too late.
This commit is contained in:
1 file changed
+1
-1
@@ -382,7 +382,7 @@ bool CDImageCCD::OpenAndParse(const char* path, Error* error)
|
||||
return false;
|
||||
}
|
||||
|
||||
m_lba_count = m_tracks.back().start_lba + m_tracks.back().length;
|
||||
m_lba_count = leadout_lba + plba_offset;
|
||||
AddLeadOutIndex();
|
||||
|
||||
m_path = path;
|
||||
|
||||
Reference in new issue
Block a user