CD-ROM Image: Fix support for broken cue files with "TRACK 0" instead of "TRACK 01".

This commit is contained in:
OBattler
2025-08-27 19:54:04 +02:00
parent ed797a8935
commit 83cef9c49b

View File

@@ -1610,7 +1610,9 @@ image_load_cue(cd_image_t *img, const char *cuefile)
else
break;
}
}
} else if ((t == 0) && (line[strlen(line) - 2] == ' ') &&
(line[strlen(line) - 1] == '0'))
t = 1;
last_t = t;
ct = image_insert_track(img, session, t);