Slight readability cleanup in DIC

This commit is contained in:
Matt Nadareski
2024-05-28 12:50:01 -04:00
parent 074d2c031c
commit 12a13a2ffa
2 changed files with 4 additions and 2 deletions

View File

@@ -146,6 +146,7 @@
- Merge VersionTool into FrontendTool
- Move EnumExtensions to Frontend
- Treat KP2 like PS2 in DIC
- Slight readability cleanup in DIC
### 3.1.9a (2024-05-21)

View File

@@ -1612,13 +1612,14 @@ namespace MPF.Processors
line.Substring("File Identifier: ".Length) == exeName)
{
// Account for Y2K date problem
if (exeDate != null && exeDate!.Substring(0, 2) == "19")
if (exeDate != null && exeDate.Substring(0, 2) == "19")
{
string decade = exeDate!.Substring(2, 1);
// Does only PSX need to account for 1920s-60s?
if (decade == "0" || decade == "1" ||
psx && (decade == "2" || decade == "3" || decade == "4" || decade == "5" || decade == "6"))
exeDate = $"20{exeDate!.Substring(2)}";
exeDate = $"20{exeDate.Substring(2)}";
}
// Currently stored date is the EXE date, return it