From cac6c3049b5bcae108da11b6e15db97f17d114fb Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 15 Feb 2024 12:56:30 -0500 Subject: [PATCH] Add funworld Photo Play detection (fixes #650) --- CHANGELIST.md | 1 + MPF.Core/Data/Drive.cs | 19 +++++++++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index d920751e..1184d9bd 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -4,6 +4,7 @@ - Make Redumper the default for new users - Fix DIC log parsing for SS version - Write outputs with UTF-8 +- Add funworld Photo Play detection ### 3.1.0 (2024-02-06) diff --git a/MPF.Core/Data/Drive.cs b/MPF.Core/Data/Drive.cs index 86968c3c..c3b49a6f 100644 --- a/MPF.Core/Data/Drive.cs +++ b/MPF.Core/Data/Drive.cs @@ -83,7 +83,7 @@ namespace MPF.Core.Data InfoTool.GetPlayStationExecutableInfo(this.Name, out string? serial, out _, out _); volumeLabel = serial ?? "track"; break; - + default: volumeLabel = "track"; break; @@ -282,6 +282,17 @@ namespace MPF.Core.Data return systemFromLabel; // Get a list of files for quicker checking + #region Arcade + + // funworld Photo Play + if (File.Exists(Path.Combine(this.Name, "PP.INF")) + && Directory.Exists(Path.Combine(this.Name, "PPINC"))) + { + return RedumpSystem.funworldPhotoPlay; + } + + #endregion + #region Consoles // Bandai Playdia Quick Interactive System @@ -439,7 +450,7 @@ namespace MPF.Core.Data return RedumpSystem.VTechVFlashVSmilePro; } -#endregion + #endregion #region Computers @@ -530,7 +541,7 @@ namespace MPF.Core.Data } catch { } -#endregion + #endregion // Default return return defaultValue; @@ -596,7 +607,7 @@ namespace MPF.Core.Data this.PopulateFromDriveInfo(driveInfo); } -#endregion + #endregion #region Helpers