mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Add + to positive offsets in a better way (#422)
This commit is contained in:
@@ -821,8 +821,8 @@ namespace MPF.Library
|
||||
AddIfExists(output, Template.DATField, info.TracksAndWriteOffsets.ClrMameProData + "\n", 1);
|
||||
AddIfExists(output, Template.CuesheetField, info.TracksAndWriteOffsets.Cuesheet, 1);
|
||||
string offset = info.TracksAndWriteOffsets.OtherWriteOffsets;
|
||||
if (offset?.StartsWith("-") == false)
|
||||
offset = $"+{offset}";
|
||||
if (Int32.TryParse(offset, out int i))
|
||||
offset = i.ToString("+#;-#;0");
|
||||
|
||||
AddIfExists(output, Template.WriteOffsetField, offset, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user