mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-28 16:30:54 +01:00
Allow missing files for .dic [DiRT (PC)]
This commit is contained in:
parent
3123541c7f
commit
e9df576d51
@ -83,7 +83,8 @@ VGMSTREAM* init_vgmstream_ego_dic(STREAMFILE* sf) {
|
|||||||
sb = open_streamfile_by_filename(sf, resource_name);
|
sb = open_streamfile_by_filename(sf, resource_name);
|
||||||
if (sb == NULL) {
|
if (sb == NULL) {
|
||||||
vgm_logi("DIC1: external file '%s' not found (put together)\n", resource_name);
|
vgm_logi("DIC1: external file '%s' not found (put together)\n", resource_name);
|
||||||
goto fail;
|
/* allow missing as silence since some game use huge .dic that is a bit hard to get */
|
||||||
|
//goto fail;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,10 +139,14 @@ VGMSTREAM* init_vgmstream_ego_dic(STREAMFILE* sf) {
|
|||||||
VGM_LOG("DIC1: unknown codec\n");
|
VGM_LOG("DIC1: unknown codec\n");
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
snprintf(vgmstream->stream_name, STREAM_NAME_SIZE, "%s.%s/%s", container_name, ext, track_name);
|
snprintf(vgmstream->stream_name, STREAM_NAME_SIZE, "%s.%s%s/%s", container_name, ext, sb ? "" : "[MISSING]", track_name);
|
||||||
|
|
||||||
vgmstream->loop_start_sample = 0;
|
vgmstream->loop_start_sample = 0;
|
||||||
vgmstream->loop_end_sample = vgmstream->num_samples;
|
vgmstream->loop_end_sample = vgmstream->num_samples;
|
||||||
|
if (!sb) {
|
||||||
|
vgmstream->coding_type = coding_SILENCE;
|
||||||
|
vgmstream->layout_type = layout_none;
|
||||||
|
}
|
||||||
|
|
||||||
if (!vgmstream_open_stream(vgmstream, sb, stream_offset))
|
if (!vgmstream_open_stream(vgmstream, sb, stream_offset))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user