From: notaz Date: Fri, 15 Aug 2025 17:51:44 +0000 (+0300) Subject: cdriso: fill trackinfo for metadata-less formats X-Git-Tag: libretro-devbuild~1^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a8d6b0a56d035ae7fe7d2f6fc26170483704ccb;p=pcsx_rearmed.git cdriso: fill trackinfo for metadata-less formats libretro/pcsx_rearmed#894 --- 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);