mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-21 03:50:28 +00:00
chd_stream: support CHDs from GDI files
This commit is contained in:
parent
fa6d0fac67
commit
7061cb14fb
@ -103,8 +103,19 @@ chdstream_get_meta(chd_file *chd, int idx, metadata_t *md)
|
|||||||
sizeof(meta), &meta_size, NULL, NULL);
|
sizeof(meta), &meta_size, NULL, NULL);
|
||||||
if (err == CHDERR_NONE)
|
if (err == CHDERR_NONE)
|
||||||
{
|
{
|
||||||
sscanf(meta, CDROM_TRACK_METADATA_FORMAT,
|
sscanf(meta, CDROM_TRACK_METADATA_FORMAT, &md->track, md->type,
|
||||||
&md->track, md->type, md->subtype, &md->frames);
|
md->subtype, &md->frames);
|
||||||
|
md->extra = padding_frames(md->frames);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
err = chd_get_metadata(chd, GDROM_TRACK_METADATA_TAG, idx, meta,
|
||||||
|
sizeof(meta), &meta_size, NULL, NULL);
|
||||||
|
if (err == CHDERR_NONE)
|
||||||
|
{
|
||||||
|
sscanf(meta, GDROM_TRACK_METADATA_FORMAT, &md->track, md->type,
|
||||||
|
md->subtype, &md->frames, &md->pad, &md->pregap, md->pgtype,
|
||||||
|
md->pgsub, &md->postgap);
|
||||||
md->extra = padding_frames(md->frames);
|
md->extra = padding_frames(md->frames);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user