diff --git a/CHANGELIST.md b/CHANGELIST.md index f4f4fa42..383ea6ab 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -26,6 +26,7 @@ - Comment out `.` handling for DIC - Ensure dumping program box can enable/disable - Disable special SmartE handling for DIC +- Remove path from PS1/PS2 serial ### 2.5 (2023-03-12) diff --git a/MPF.Modules/BaseParameters.cs b/MPF.Modules/BaseParameters.cs index dcd7b132..e8e0eeb2 100644 --- a/MPF.Modules/BaseParameters.cs +++ b/MPF.Modules/BaseParameters.cs @@ -1271,6 +1271,9 @@ namespace MPF.Modules serial = exeName .Replace('_', '-') .Replace(".", string.Empty); + + // Some games may have the EXE in a subfolder + serial = Path.GetFileName(serial); } }