mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Fix NRE with offsets
This commit is contained in:
@@ -168,6 +168,7 @@
|
||||
- Add logging to !submissionInfo writing failure
|
||||
- Add logging to !submissionInfo formatting failure
|
||||
- Update issue templates to be more accurate
|
||||
- Fix NRE with offsets
|
||||
|
||||
### 2.3 (2022-02-05)
|
||||
- Start overhauling Redump information pulling, again
|
||||
|
||||
@@ -820,7 +820,7 @@ 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("-"))
|
||||
if (offset?.StartsWith("-") == false)
|
||||
offset = $"+{offset}";
|
||||
|
||||
AddIfExists(output, Template.WriteOffsetField, offset, 1);
|
||||
|
||||
Reference in New Issue
Block a user