From 5a8d6b0a56d035ae7fe7d2f6fc26170483704ccb Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 15 Aug 2025 20:51:44 +0300 Subject: [PATCH] cdriso: fill trackinfo for metadata-less formats libretro/pcsx_rearmed#894 --- libpcsxcore/cdriso.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index 4c4bff6f..a917b54d 100644 --- a/libpcsxcore/cdriso.c +++ b/libpcsxcore/cdriso.c @@ -1494,6 +1494,14 @@ int ISOopen(const char *fname) isMode1ISO = TRUE; } } + if (cdHandle && numtracks == 0) { + // assume some metadata-less format + numtracks = 1; + ti[1].type = DATA; + ti[1].start_offset = 0; + sec2msf(2 * 75, ti[1].start); + sec2msf(isMode1ISO ? size_main / 2048u : size_main / 2352u, ti[1].length); + } SysPrintf("%s (%lld bytes).\n", image_str, (long long)size_main); -- 2.47.2