Fix Sega CD internal serial reading

This commit is contained in:
Matt Nadareski
2022-01-09 22:38:22 -08:00
parent 31cdcbbc25
commit 406acd34c5
2 changed files with 2 additions and 1 deletions

View File

@@ -43,6 +43,7 @@
- Fix incorrect header check
- Make protection read-only field multiline
- Reformat Saturn internal date
- Fix Sega CD internal serial reading
### 2.2 (2021-12-30)
- Fix Saturn header finding

View File

@@ -2944,7 +2944,7 @@ namespace MPF.Modules.DiscImageCreator
string[] header = segaHeader.Split('\n');
string serialVersionLine = header[8].Substring(58);
string dateLine = header[1].Substring(58);
serial = serialVersionLine.Substring(3, 7);
serial = serialVersionLine.Substring(3, 8).TrimEnd('-', ' ');
date = dateLine.Substring(8).Trim();
// Properly format the date string, if possible