summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2018-01-08 09:18:57 -0500
committer arbee <rb6502@users.noreply.github.com>2018-01-08 09:18:57 -0500
commit4cc0c4738722069158ebb7e3689ccafa7448c317 (patch)
tree6412745d307c0737f2116d2ebb21bb3fb9ef0a3a /src/lib
parentec9fda35dde137615ca39f3e5c0ca72bc311da44 (diff)
chdcd: recognize ISO images with 2336 byte sectors. [R. Belmont, Kale]
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/util/chdcd.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/util/chdcd.cpp b/src/lib/util/chdcd.cpp
index b8d5eb80539..b69195a8a91 100644
--- a/src/lib/util/chdcd.cpp
+++ b/src/lib/util/chdcd.cpp
@@ -665,6 +665,12 @@ chd_error chdcd_parse_iso(const char *tocfname, cdrom_toc &outtoc, chdcd_track_i
outtoc.tracks[0].frames = size / 2048;
outtoc.tracks[0].datasize = 2048;
outinfo.track[0].swap = false;
+ } else if ((size % 2336)==0 ) {
+ // 2352 byte mode 2
+ outtoc.tracks[0].trktype = CD_TRACK_MODE2;
+ outtoc.tracks[0].frames = size / 2336;
+ outtoc.tracks[0].datasize = 2336;
+ outinfo.track[0].swap = false;
} else if ((size % 2352)==0 ) {
// 2352 byte mode 2 raw
outtoc.tracks[0].trktype = CD_TRACK_MODE2_RAW;