From a7af0d0d7b662ccfbcdbe99b9129ae9335db72d2 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 27 Jan 2020 22:38:07 -0800 Subject: [PATCH] Add P* serials for PlayStation (fixes #187) --- DICUI.Library/Utilities/DumpEnvironment.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/DICUI.Library/Utilities/DumpEnvironment.cs b/DICUI.Library/Utilities/DumpEnvironment.cs index 2a3ff922..f85187e6 100644 --- a/DICUI.Library/Utilities/DumpEnvironment.cs +++ b/DICUI.Library/Utilities/DumpEnvironment.cs @@ -2020,6 +2020,28 @@ namespace DICUI.Utilities } } + // Special cases + else if (exeName.StartsWith("PAPX")) + { + region = Region.Japan; + } + else if (exeName.StartsWith("PABX")) + { + // Region appears entirely random + } + else if (exeName.StartsWith("PCBX")) + { + region = Region.Japan; + } + else if (exeName.StartsWith("PDBX")) + { + // Single disc known, Japan + } + else if (exeName.StartsWith("PEBX")) + { + // Single disc known, Europe + } + // Now that we have the EXE name, try to get the fileinfo for it string exePath = Path.Combine(drivePath, exeName); if (!File.Exists(exePath))