mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
don't try to build CUE file if media isn't available
This commit is contained in:
parent
1f6b9c31e2
commit
a8232e6a2e
@ -130,8 +130,11 @@ static bool retro_vfs_file_open_cdrom_handle(libretro_vfs_implementation_file* s
|
||||
|
||||
stream->orig_path = strdup(path);
|
||||
|
||||
cdrom_write_cue(stream, &stream->cdrom.cue_buf, &stream->cdrom.cue_len, stream->cdrom.drive, &vfs_cdrom_toc.num_tracks, &vfs_cdrom_toc);
|
||||
cdrom_get_timeouts(stream, &vfs_cdrom_toc.timeouts);
|
||||
if (cdrom_is_media_inserted(stream))
|
||||
{
|
||||
cdrom_write_cue(stream, &stream->cdrom.cue_buf, &stream->cdrom.cue_len, stream->cdrom.drive, &vfs_cdrom_toc.num_tracks, &vfs_cdrom_toc);
|
||||
cdrom_get_timeouts(stream, &vfs_cdrom_toc.timeouts);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user