From ddfb383f2356f5b165ba98e8d79ffb5711185caf Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 29 Aug 2022 10:42:20 -0700 Subject: [PATCH] Add Sony Electronic Book system (fixes #400) --- CHANGELIST.md | 1 + MPF.Library/InfoTool.cs | 1 + MPF.Modules/DiscImageCreator/Parameters.cs | 1 + RedumpLib/Data/Enumerations.cs | 3 +++ RedumpLib/Data/Extensions.cs | 9 +++++++++ 5 files changed, 15 insertions(+) diff --git a/CHANGELIST.md b/CHANGELIST.md index 12bcdae9..c31cc028 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -111,6 +111,7 @@ - Update to new constructor - Update PSX content check - Update Aaru submodule to latest devel +- Add Sony Electronic Book system ### 2.3 (2022-02-05) - Start overhauling Redump information pulling, again diff --git a/MPF.Library/InfoTool.cs b/MPF.Library/InfoTool.cs index 41a7f266..237e2134 100644 --- a/MPF.Library/InfoTool.cs +++ b/MPF.Library/InfoTool.cs @@ -237,6 +237,7 @@ namespace MPF.Library case RedumpSystem.PalmOS: case RedumpSystem.PocketPC: case RedumpSystem.RainbowDisc: + case RedumpSystem.SonyElectricBook: resultProgress?.Report(Result.Success("Running copy protection scan... this might take a while!")); (string protectionString, Dictionary> fullProtections) = await GetCopyProtection(drive, options, protectionProgress); info.CopyProtection.Protection = protectionString; diff --git a/MPF.Modules/DiscImageCreator/Parameters.cs b/MPF.Modules/DiscImageCreator/Parameters.cs index 49752b8c..25872f26 100644 --- a/MPF.Modules/DiscImageCreator/Parameters.cs +++ b/MPF.Modules/DiscImageCreator/Parameters.cs @@ -463,6 +463,7 @@ namespace MPF.Modules.DiscImageCreator case RedumpSystem.EnhancedCD: case RedumpSystem.IBMPCcompatible: case RedumpSystem.RainbowDisc: + case RedumpSystem.SonyElectricBook: if (File.Exists($"{basePath}_subIntention.txt")) { FileInfo fi = new FileInfo($"{basePath}_subIntention.txt"); diff --git a/RedumpLib/Data/Enumerations.cs b/RedumpLib/Data/Enumerations.cs index 6021f4d0..c0a0dd84 100644 --- a/RedumpLib/Data/Enumerations.cs +++ b/RedumpLib/Data/Enumerations.cs @@ -2446,6 +2446,9 @@ namespace RedumpLib.Data [System(Category = SystemCategory.Other, LongName = "Sega Prologue 21 Multimedia Karaoke System", ShortName = "sp21", HasCues = true, HasDat = true)] SegaPrologue21MultimediaKaraokeSystem, + [System(Category = SystemCategory.Other, Available = false, LongName = "Sony Electric Book")] + SonyElectricBook, + [System(Category = SystemCategory.Other, Available = false, LongName = "Super Audio CD")] SuperAudioCD, diff --git a/RedumpLib/Data/Extensions.cs b/RedumpLib/Data/Extensions.cs index 0251bbfb..e8560455 100644 --- a/RedumpLib/Data/Extensions.cs +++ b/RedumpLib/Data/Extensions.cs @@ -673,6 +673,11 @@ namespace RedumpLib.Data types.Add(MediaType.CDROM); break; + // UNKNOWN + case RedumpSystem.SonyElectricBook: + types.Add(MediaType.CDROM); + break; + // https://en.wikipedia.org/wiki/Super_Audio_CD case RedumpSystem.SuperAudioCD: types.Add(MediaType.CDROM); @@ -2044,6 +2049,10 @@ namespace RedumpLib.Data case "sega prologue21": case "sega prologue 21": return RedumpSystem.SegaPrologue21MultimediaKaraokeSystem; + case "electricbook": + case "sonyelectricbook": + case "sony electric book": + return RedumpSystem.SonyElectricBook; case "sacd": case "superaudiocd": case "super audio cd":