mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-12 01:30:49 +01:00
txtm: tweak for multi multi-awb+acb
This commit is contained in:
parent
fcc0461420
commit
34b25d2e1f
12
doc/USAGE.md
12
doc/USAGE.md
@ -443,6 +443,18 @@ bgm_2_streamfiles.awb: bgm_2.acb
|
||||
bgm.awb: bgm.acb
|
||||
bgm_DLC1.awb: bgm.acb
|
||||
```
|
||||
In rare cases you need to setup some extra flags
|
||||
```
|
||||
event_stream2.awb: event_stream2.acb
|
||||
event_stream2_dlc1.awb: event_stream2.acb
|
||||
event_stream2_dlc2.awb: event_stream2.acb
|
||||
event_stream2_dlc3.awb: event_stream2.acb
|
||||
# next "flag" allows both effect.acb and even_stream2.acb in the same file
|
||||
#@reset-pos
|
||||
effect.awb: effect.acb
|
||||
effect_dlc2.awb: effect.acb
|
||||
effect_dlc3.awb: effect.acb
|
||||
```
|
||||
|
||||
### Plugin conflicts
|
||||
Since vgmstream supports a huge amount of formats it's possibly that some of
|
||||
|
@ -1261,6 +1261,11 @@ STREAMFILE* read_filemap_file_pos(STREAMFILE* sf, int file_num, int* p_pos) {
|
||||
/* get key/val (ignores lead/trailing spaces, stops at comment/separator) */
|
||||
ok = sscanf(line, " %[^\t#:] : %[^\t#\r\n] ", key, val);
|
||||
if (ok != 2) { /* ignore line if no key=val (comment or garbage) */
|
||||
/* better way? */
|
||||
if (strcmp(line, "#@reset-pos") == 0) {
|
||||
file_pos = 0;
|
||||
VGM_LOG("pos =%i\n", file_pos);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user