mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Slight readability cleanup in DIC
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user