From 102165429f64ff5a3c72e48fbf2f699a8f69151d Mon Sep 17 00:00:00 2001 From: Ty Lamontagne Date: Wed, 27 Nov 2024 14:54:44 -0500 Subject: [PATCH] CDVD | CHD: Account for pre/post gap offsets when filling TOC This will fix discs with tracks with both an INDEX 00 and INDEX 01 --- pcsx2/CDVD/ChdFileReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/CDVD/ChdFileReader.cpp b/pcsx2/CDVD/ChdFileReader.cpp index 112542631ab17..11f52c8db551f 100644 --- a/pcsx2/CDVD/ChdFileReader.cpp +++ b/pcsx2/CDVD/ChdFileReader.cpp @@ -281,7 +281,7 @@ bool ChdFileReader::ParseTOC(u64* out_frame_count, std::vector& entri { u64 total_frames = 0; int max_found_track = -1; - + u64 total_gap_frames = 0; for (int search_index = 0;; search_index++) { char metadata_str[256];