- fseek(ti[numtracks + 1].handle, 0, SEEK_END);
- file_len = ftell(ti[numtracks + 1].handle) / 2352;
-
- if (numtracks == 0 && strlen(isofile) >= 4 &&
- (strcmp(isofile + strlen(isofile) - 4, ".cue") == 0 ||
- strncasecmp(isofile + strlen(isofile) - 4, ".cd", 3) == 0)) {
- // user selected .cue/.cdX as image file, use it's data track instead
- fclose(cdHandle);
- cdHandle = fopen(filepath, "rb");
- }