Expose song render failures
This commit is contained in:
parent
36ef9109c2
commit
03cd6007f8
5 changed files with 50 additions and 3 deletions
|
|
@ -2950,6 +2950,9 @@ public static class PatchScript
|
|||
var pieces = value.Split(':');
|
||||
return pieces[0].ToLowerInvariant() switch
|
||||
{
|
||||
"ad" when pieces.Length == 1 => AdEnvelope(
|
||||
GetBoundFloat(fields, line, 0, $"{fieldPath}/env/attack", "attack", "a"),
|
||||
GetBoundFloat(fields, line, 0.1f, $"{fieldPath}/env/decay", "decay", "d", "env_decay", "ed")),
|
||||
"ad" when pieces.Length == 3 => AdEnvelope(
|
||||
ParseBoundFloat(pieces[1], line, 0, $"{fieldPath}/env/attack"),
|
||||
ParseBoundFloat(pieces[2], line, 0.1f, $"{fieldPath}/env/decay")),
|
||||
|
|
|
|||
Loading…
Reference in a new issue