From f03cd40181724a1e9e2b2dfb10fba0803b05f318 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 1 Dec 2024 21:14:08 -0500 Subject: [PATCH] Use automatic system name mapping --- SabreTools.RedumpLib/Data/Extensions.cs | 894 +----------------------- 1 file changed, 18 insertions(+), 876 deletions(-) diff --git a/SabreTools.RedumpLib/Data/Extensions.cs b/SabreTools.RedumpLib/Data/Extensions.cs index 505e455..ff653c6 100644 --- a/SabreTools.RedumpLib/Data/Extensions.cs +++ b/SabreTools.RedumpLib/Data/Extensions.cs @@ -1055,14 +1055,16 @@ namespace SabreTools.RedumpLib.Data /// /// /// - public static string? LongName(this MediaType? mediaType) => AttributeHelper.GetAttribute(mediaType)?.LongName; + public static string? LongName(this MediaType? mediaType) + => AttributeHelper.GetAttribute(mediaType)?.LongName; /// /// Get the Redump shortnames for each known media type /// /// /// - public static string? ShortName(this MediaType? mediaType) => AttributeHelper.GetAttribute(mediaType)?.ShortName; + public static string? ShortName(this MediaType? mediaType) + => AttributeHelper.GetAttribute(mediaType)?.ShortName; #endregion @@ -1672,884 +1674,24 @@ namespace SabreTools.RedumpLib.Data /// RedumpSystem represented by the string, if possible public static RedumpSystem? ToRedumpSystem(string system) { - switch (system?.ToLowerInvariant()) - { - #region BIOS Sets + // No value means no match + if (system.Length == 0) + return null; - case "xboxbios": - case "xbox bios": - case "xbox-bios": - case "microsoftxboxbios": - case "microsoftxbox bios": - case "microsoft xbox bios": - return RedumpSystem.MicrosoftXboxBIOS; - case "gcbios": - case "gc bios": - case "gc-bios": - case "gamecubebios": - case "ngcbios": - case "ngc bios": - case "nintendogamecubebios": - case "nintendo gamecube bios": - return RedumpSystem.NintendoGameCubeBIOS; - case "ps1bios": - case "ps1 bios": - case "psxbios": - case "psx bios": - case "psx-bios": - case "playstationbios": - case "playstation bios": - case "sonyps1bios": - case "sonyps1 bios": - case "sony ps1 bios": - case "sonypsxbios": - case "sonypsx bios": - case "sony psx bios": - case "sonyplaystationbios": - case "sonyplaystation bios": - case "sony playstation bios": - return RedumpSystem.SonyPlayStationBIOS; - case "ps2bios": - case "ps2 bios": - case "ps2-bios": - case "playstation2bios": - case "playstation2 bios": - case "playstation 2 bios": - case "sonyps2bios": - case "sonyps2 bios": - case "sony ps2 bios": - case "sonyplaystation2bios": - case "sonyplaystation2 bios": - case "sony playstation 2 bios": - return RedumpSystem.SonyPlayStation2BIOS; + system = system.ToLowerInvariant(); + var redumpSystems = (RedumpSystem[])Enum.GetValues(typeof(RedumpSystem)); - #endregion + // Check short names + int index = Array.FindIndex(redumpSystems, s => system == s.ShortName()?.ToLowerInvariant()); + if (index > -1) + return redumpSystems[index]; - #region Consoles + // Check long names + index = Array.FindIndex(redumpSystems, s => system == s.LongName()?.ToLowerInvariant()); + if (index > -1) + return redumpSystems[index]; - case "ajcd": - case "jaguar": - case "jagcd": - case "jaguarcd": - case "jaguar cd": - case "atarijaguar": - case "atarijagcd": - case "atarijaguarcd": - case "atari jaguar cd": - case "atari jaguar cd interactive multimedia system": - return RedumpSystem.AtariJaguarCDInteractiveMultimediaSystem; - case "qis": - case "playdia": - case "playdiaqis": - case "playdiaquickinteractivesystem": - case "bandaiplaydia": - case "bandaiplaydiaquickinteractivesystem": - case "bandai playdia quick interactive system": - return RedumpSystem.BandaiPlaydiaQuickInteractiveSystem; - case "pippin": - case "bandaipippin": - case "bandai pippin": - case "applepippin": - case "apple pippin": - case "bandaiapplepippin": - case "bandai apple pippin": - case "bandai / apple pippin": - return RedumpSystem.BandaiPippin; - case "cd32": - case "amigacd32": - case "amiga cd32": - case "commodoreamigacd32": - case "commodore amiga cd32": - return RedumpSystem.CommodoreAmigaCD32; - case "cdtv": - case "amigacdtv": - case "amiga cdtv": - case "commodoreamigacdtv": - case "commodore amiga cdtv": - return RedumpSystem.CommodoreAmigaCDTV; - case "evosc": - case "evo sc": - case "evosmartconsole": - case "evo smart console": - case "envizionsevosc": - case "envizion evo sc": - case "envizionevosmartconsole": - case "envizion evo smart console": - return RedumpSystem.EnvizionsEVOSmartConsole; - case "fmtm": - case "fmtownsmarty": - case "fm towns marty": - case "fujitsufmtownsmarty": - case "fujitsu fm towns marty": - return RedumpSystem.FujitsuFMTownsMarty; - case "ion": - case "ionegs": - case "hasbroion": - case "hasbroioneducationalgamingsystem": - case "hasbro ion educational gaming system": - return RedumpSystem.HasbroiONEducationalGamingSystem; - case "hvn": - case "videonow": - case "hasbrovideonow": - case "hasbro videonow": - return RedumpSystem.HasbroVideoNow; - case "hvnc": - case "videonowcolor": - case "videonow color": - case "hasbrovideonowcolor": - case "hasbro videonow color": - return RedumpSystem.HasbroVideoNowColor; - case "hvnjr": - case "videonowjr": - case "videonow jr": - case "hasbrovideonowjr": - case "hasbro videonow jr": - case "hasbro videonow jr.": - return RedumpSystem.HasbroVideoNowJr; - case "xvnxp": - case "videonowxp": - case "videonow xp": - case "hasbrovideonowxp": - case "hasbro videonow xp": - return RedumpSystem.HasbroVideoNowXP; - case "ixl": - case "mattelixl": - case "mattel ixl": - case "fisherpriceixl": - case "fisher price ixl": - case "fisher-price ixl": - case "fisherprice ixl": - case "mattelfisherpriceixl": - case "mattel fisher price ixl": - case "mattelfisherprice ixl": - case "mattel fisherprice ixl": - case "mattel fisher-price ixl": - return RedumpSystem.MattelFisherPriceiXL; - case "hs": - case "hyperscan": - case "mattelhyperscan": - case "mattel hyperscan": - return RedumpSystem.MattelHyperScan; - case "xbox": - case "microsoftxbox": - case "microsoft xbox": - return RedumpSystem.MicrosoftXbox; - case "x360": - case "xbox360": - case "microsoftx360": - case "microsoftxbox360": - case "microsoft x360": - case "microsoft xbox 360": - return RedumpSystem.MicrosoftXbox360; - case "xb1": - case "xbone": - case "xboxone": - case "microsoftxbone": - case "microsoftxboxone": - case "microsoft xbone": - case "microsoft xbox one": - return RedumpSystem.MicrosoftXboxOne; - case "xbs": - case "xboxsx": - case "xbseries": - case "xbseriess": - case "xbseriesx": - case "xbseriessx": - case "xboxseries": - case "xboxseriess": - case "xboxseriesx": - case "xboxseriesxs": - case "microsoftxboxseries": - case "microsoftxboxseriess": - case "microsoftxboxseriesx": - case "microsoftxboxseriesxs": - case "microsoft xbox series": - case "microsoft xbox series s": - case "microsoft xbox series x": - case "microsoft xbox series x and s": - return RedumpSystem.MicrosoftXboxSeriesXS; - case "pce": - case "pcecd": - case "pce-cd": - case "tgcd": - case "tg-cd": - case "necpcecd": - case "nectgcd": - case "nec pc-engine cd": - case "nec turbografx cd": - case "nec pc-engine / turbografx cd": - case "nec pc-engine cd & turbografx cd": - return RedumpSystem.NECPCEngineCDTurboGrafxCD; - case "pcfx": - case "pc-fx": - case "pcfxga": - case "pc-fxga": - case "necpcfx": - case "necpcfxga": - case "nec pc-fx": - case "nec pc-fxga": - case "nec pc-fx / pc-fxga": - case "nec pc-fx & pc-fxga": - return RedumpSystem.NECPCFXPCFXGA; - case "gc": - case "gamecube": - case "ngc": - case "nintendogamecube": - case "nintendo gamecube": - return RedumpSystem.NintendoGameCube; - case "snescd": - case "snes cd": - case "snes-cd": - case "supernescd": - case "super nes cd": - case "super nes-cd": - case "supernintendocd": - case "super nintendo cd": - case "super nintendo-cd": - case "nintendosnescd": - case "nintendo snes cd": - case "nintendosnes-cd": - case "nintendosupernescd": - case "nintendo super nes cd": - case "nintendo super nes-cd": - case "nintendosupernintendocd": - case "nintendo super nintendo cd": - case "nintendo super nintendo-cd": - case "sonysnescd": - case "sony snes cd": - case "sonysnes-cd": - case "sonysupernescd": - case "sony super nes cd": - case "sony super nes-cd": - case "sonysupernintendocd": - case "sony super nintendo cd": - case "sony super nintendo-cd": - case "nintendo-sony super nes cd-rom system": - return RedumpSystem.NintendoSonySuperNESCDROMSystem; - case "wii": - case "nintendowii": - case "nintendo wii": - return RedumpSystem.NintendoWii; - case "wiiu": - case "wii u": - case "nintendowiiu": - case "nintendo wii u": - return RedumpSystem.NintendoWiiU; - case "3do": - case "3do interactive multiplayer": - case "panasonic3do": - case "panasonic 3do": - case "panasonic 3do interactive multiplayer": - return RedumpSystem.Panasonic3DOInteractiveMultiplayer; - case "cdi": - case "cd-i": - case "philipscdi": - case "philips cdi": - case "philips cd-i": - return RedumpSystem.PhilipsCDi; - case "laseractive": - case "pioneerlaseractive": - case "pioneer laseractive": - return RedumpSystem.PioneerLaserActive; - case "scd": - case "mcd": - case "smcd": - case "segacd": - case "megacd": - case "segamegacd": - case "sega cd": - case "mega cd": - case "sega cd / mega cd": - case "sega mega cd & sega cd": - return RedumpSystem.SegaMegaCDSegaCD; - case "dc": - case "sdc": - case "dreamcast": - case "segadreamcast": - case "sega dreamcast": - return RedumpSystem.SegaDreamcast; - case "ss": - case "saturn": - case "segasaturn": - case "sega saturn": - return RedumpSystem.SegaSaturn; - case "ngcd": - case "neogeocd": - case "neogeo cd": - case "neo geo cd": - case "snk ngcd": - case "snk neogeo cd": - case "snk neo geo cd": - return RedumpSystem.SNKNeoGeoCD; - case "ps1": - case "psx": - case "playstation": - case "sonyps1": - case "sony ps1": - case "sonypsx": - case "sony psx": - case "sonyplaystation": - case "sony playstation": - return RedumpSystem.SonyPlayStation; - case "ps2": - case "playstation2": - case "playstation 2": - case "sonyps2": - case "sony ps2": - case "sonyplaystation2": - case "sony playstation 2": - return RedumpSystem.SonyPlayStation2; - case "ps3": - case "playstation3": - case "playstation 3": - case "sonyps3": - case "sony ps3": - case "sonyplaystation3": - case "sony playstation 3": - return RedumpSystem.SonyPlayStation3; - case "ps4": - case "playstation4": - case "playstation 4": - case "sonyps4": - case "sony ps4": - case "sonyplaystation4": - case "sony playstation 4": - return RedumpSystem.SonyPlayStation4; - case "ps5": - case "playstation5": - case "playstation 5": - case "sonyps5": - case "sony ps5": - case "sonyplaystation5": - case "sony playstation 5": - return RedumpSystem.SonyPlayStation5; - case "psp": - case "playstationportable": - case "playstation portable": - case "sonypsp": - case "sony psp": - case "sonyplaystationportable": - case "sony playstation portable": - return RedumpSystem.SonyPlayStationPortable; - case "vis": - case "tandyvis": - case "tandy vis": - case "tandyvisualinformationsystem": - case "tandy visual information system": - case "memorexvis": - case "memorex vis": - case "memorexvisualinformationsystem": - case "memorex visual information sytem": - case "tandy / memorex visual information system": - return RedumpSystem.MemorexVisualInformationSystem; - case "nuon": - case "vmlabsnuon": - case "vm labs nuon": - return RedumpSystem.VMLabsNUON; - case "vflash": - case "vsmile": - case "vsmilepro": - case "vsmile pro": - case "v.flash": - case "v.smile": - case "v.smilepro": - case "v.smile pro": - case "vtechvflash": - case "vtech vflash": - case "vtech v.flash": - case "vtechvsmile": - case "vtech vsmile": - case "vtech v.smile": - case "vtechvsmilepro": - case "vtech vsmile pro": - case "vtech v.smile pro": - case "vtech v.flash - v.smile pro": - case "vtech v.flash & v.smile pro": - return RedumpSystem.VTechVFlashVSmilePro; - case "gamewave": - case "game wave": - case "zapit": - case "zapitgamewave": - case "zapit game wave": - case "zapit games game wave family entertainment system": - return RedumpSystem.ZAPiTGamesGameWaveFamilyEntertainmentSystem; - - #endregion - - #region Computers - - case "acorn": - case "archcd": - case "archimedes": - case "acornarchimedes": - case "acorn archimedes": - return RedumpSystem.AcornArchimedes; - case "apple": - case "mac": - case "applemac": - case "macintosh": - case "applemacintosh": - case "apple mac": - case "apple macintosh": - return RedumpSystem.AppleMacintosh; - case "acd": - case "amiga": - case "commodoreamiga": - case "commodore amiga": - case "commodore amiga cd": - return RedumpSystem.CommodoreAmigaCD; - case "fmtowns": - case "fmt": - case "fm towns": - case "fujitsufmtowns": - case "fujitsu fm towns": - case "fujitsu fm towns series": - return RedumpSystem.FujitsuFMTownsseries; - case "ibm": - case "ibmpc": - case "pc": - case "ibm pc": - case "ibm pc compatible": - return RedumpSystem.IBMPCcompatible; - case "pc88": - case "pc-88": - case "necpc88": - case "nec pc88": - case "nec pc-88": - case "nec pc-88 series": - return RedumpSystem.NECPC88series; - case "pc98": - case "pc-98": - case "necpc98": - case "nec pc98": - case "nec pc-98": - case "nec pc-98 series": - return RedumpSystem.NECPC98series; - case "x68k": - case "x68kcd": - case "x68000": - case "sharpx68k": - case "sharp x68k": - case "sharpx68000": - case "sharp x68000": - return RedumpSystem.SharpX68000; - - #endregion - - #region Arcade - - case "cubo": - case "cubocd32": - case "cubo cd32": - case "amigacubocd32": - case "amiga cubo cd32": - return RedumpSystem.AmigaCUBOCD32; - case "alg3do": - case "alg 3do": - case "americanlasergames3do": - case "american laser games 3do": - return RedumpSystem.AmericanLaserGames3DO; - case "atari3do": - case "atari 3do": - return RedumpSystem.Atari3DO; - case "atronic": - return RedumpSystem.Atronic; - case "auscom": - case "auscomsystem1": - case "auscom system 1": - return RedumpSystem.AUSCOMSystem1; - case "gamemagic": - case "game magic": - case "ballygamemagic": - case "bally game magic": - return RedumpSystem.BallyGameMagic; - case "cps3": - case "cpsiii": - case "cps 3": - case "cp system 3": - case "cp system iii": - case "capcomcps3": - case "capcomcpsiii": - case "capcom cps 3": - case "capcom cps iii": - case "capcom cp system 3": - case "capcom cp system iii": - return RedumpSystem.CapcomCPSystemIII; - case "fpp": - case "funworldphotoplay": - case "funworld photoplay": - case "funworld photo play": - return RedumpSystem.funworldPhotoPlay; - case "globalvr": - case "global vr": - case "global vr pc-based systems": - return RedumpSystem.GlobalVRVarious; - case "vortek": - case "globalvrvortek": - case "global vr vortek": - return RedumpSystem.GlobalVRVortek; - case "vortekv3": - case "vortek v3": - case "globalvrvortekv3": - case "global vr vortek v3": - return RedumpSystem.GlobalVRVortekV3; - case "ice": - case "icepc": - case "ice pc": - case "ice pc-based hardware": - return RedumpSystem.ICEPCHardware; - case "ite": - case "iteagle": - case "eagle": - case "incredible technologies eagle": - return RedumpSystem.IncredibleTechnologiesEagle; - case "itpc": - case "incredible technologies pc-based systems": - return RedumpSystem.IncredibleTechnologiesVarious; - case "jvlitouch": - case "jvl itouch": - return RedumpSystem.JVLiTouch; - case "kea": - case "eamusement": - case "e-amusement": - case "konamieamusement": - case "konami eamusement": - case "konamie-amusement": - case "konami e-amusement": - return RedumpSystem.KonamieAmusement; - case "kfb": - case "firebeat": - case "konamifirebeat": - case "konami firebeat": - return RedumpSystem.KonamiFireBeat; - case "ksgv": - case "gvsystem": - case "gv system": - case "konamigvsystem": - case "konami gv system": - case "systemgv": - case "system gv": - case "konamisystemgv": - case "konami system gv": - return RedumpSystem.KonamiSystemGV; - case "km2": - case "konamim2": - case "konami m2": - return RedumpSystem.KonamiM2; - case "python": - case "konamipython": - case "konami python": - return RedumpSystem.KonamiPython; - case "python2": - case "python 2": - case "konamipython2": - case "konami python 2": - return RedumpSystem.KonamiPython2; - case "ks573": - case "system573": - case "system 573": - case "konamisystem573": - case "konami system 573": - return RedumpSystem.KonamiSystem573; - case "kt": - case "twinkle": - case "konamitwinkle": - case "konami twinkle": - return RedumpSystem.KonamiTwinkle; - case "konamipc": - case "konami pc": - case "konami pc-based systems": - return RedumpSystem.KonamiVarious; - case "boardwalk": - case "meritindustriesboardwalk": - case "merit industries boardwalk": - return RedumpSystem.MeritIndustriesBoardwalk; - case "megatouchforce": - case "megatouch force": - case "meritindustriesmegatouchforce": - case "merit industries megatouch force": - return RedumpSystem.MeritIndustriesMegaTouchForce; - case "megatouchion": - case "megatouch ion": - case "meritindustriesmegatouchion": - case "merit industries megatouch ion": - return RedumpSystem.MeritIndustriesMegaTouchION; - case "megatouchmaxx": - case "megatouch maxx": - case "meritindustriesmegatouchmaxx": - case "merit industries megatouch maxx": - return RedumpSystem.MeritIndustriesMegaTouchMaxx; - case "megatouchxl": - case "megatouch xl": - case "meritindustriesmegatouchxl": - case "merit industries megatouch xl": - return RedumpSystem.MeritIndustriesMegaTouchXL; - case "ns246": - case "system246": - case "system 246": - case "namcosystem246": - case "namco system 246": - case "capcomsystem246": - case "capcom system 246": - case "taitosystem246": - case "taito system 246": - case "namco / capcom / taito system 246": - case "system256": - case "system 256": - case "supersystem256": - case "super system 256": - case "namcosystem256": - case "namco system 256": - case "namcosupersystem256": - case "namco super system 256": - case "capcomsystem256": - case "capcom system 256": - case "capcomsupersystem256": - case "capcom super system 256": - case "namco / capcom system 256/super system 256": - case "namco system 246 / system 256": - return RedumpSystem.NamcoSystem246256; - case "triforce": - case "namcotriforce": - case "namco triforce": - case "segatriforce": - case "sega triforce": - case "nintendotriforce": - case "nintendo triforce": - case "namco / sega / nintendo triforce": - case "Namco · Sega · Nintendo Triforce": - return RedumpSystem.NamcoSegaNintendoTriforce; - case "ns12": - case "system12": - case "system 12": - case "namcosystem12": - case "namco system 12": - return RedumpSystem.NamcoSystem12; - case "newjatrecdi": - case "new jatre cdi": - case "new jatre cd-i": - return RedumpSystem.NewJatreCDi; - case "hrs": - case "highratesytem": - case "high rate system": - case "nichibutsuhrs": - case "nichibutsu hrs": - case "nichibutsu high rate system": - return RedumpSystem.NichibutsuHighRateSystem; - case "supercd": - case "super cd": - case "nichibutsuscd": - case "nichibutsu scd": - case "nichibutsusupercd": - case "nichibutsu supercd": - case "nichibutsu super cd": - return RedumpSystem.NichibutsuSuperCD; - case "xrs": - case "xratesystem": - case "x-rate system": - case "nichibutsuxrs": - case "nichibutsu xrs": - case "nichibutsu x-rate system": - return RedumpSystem.NichibutsuXRateSystem; - case "m2": - case "panasonicm2": - case "panasonic m2": - return RedumpSystem.PanasonicM2; - case "photoplay": - case "photoplaypc": - case "photoplay pc": - case "photoplay pc-based systems": - return RedumpSystem.PhotoPlayVarious; - case "rawthrills": - case "raw thrills": - case "raw thrills pc-based systems": - return RedumpSystem.RawThrillsVarious; - case "alls": - case "segaalls": - case "sega alls": - return RedumpSystem.SegaALLS; - case "chihiro": - case "segachihiro": - case "sega chihiro": - return RedumpSystem.SegaChihiro; - case "europar": - case "europa-r": - case "segaeuropar": - case "sega europar": - case "sega europa-r": - return RedumpSystem.SegaEuropaR; - case "lindbergh": - case "segalindbergh": - case "sega lindbergh": - return RedumpSystem.SegaLindbergh; - case "naomi": - case "seganaomi": - case "sega naomi": - return RedumpSystem.SegaNaomi; - case "naomi2": - case "naomi 2": - case "seganaomi2": - case "sega naomi 2": - return RedumpSystem.SegaNaomi2; - case "nu": - case "seganu": - case "sega nu": - return RedumpSystem.SegaNu; - case "sre": - case "ringedge": - case "segaringedge": - case "sega ringedge": - return RedumpSystem.SegaRingEdge; - case "sre2": - case "ringedge2": - case "ringedge 2": - case "segaringedge2": - case "sega ringedge 2": - return RedumpSystem.SegaRingEdge2; - case "ringwide": - case "segaringwide": - case "sega ringwide": - return RedumpSystem.SegaRingWide; - case "stv": - case "titanvideo": - case "titan video": - case "segatitanvideo": - case "sega titan video": - return RedumpSystem.SegaTitanVideo; - case "system32": - case "system 32": - case "segasystem32": - case "sega system 32": - return RedumpSystem.SegaSystem32; - case "cats": - case "seibucats": - case "seibu cats": - case "seibu cats system": - return RedumpSystem.SeibuCATSSystem; - case "quizard": - case "tabaustriaquizard": - case "tab-austria quizard": - return RedumpSystem.TABAustriaQuizard; - case "tsumo": - case "tsunamitsumo": - case "tsunami tsumo": - case "tsunami tsumo multi-game motion system": - return RedumpSystem.TsunamiTsuMoMultiGameMotionSystem; - case "ultracade": - case "ultracadepc": - case "ultracade pc": - case "ultracade pc-based systems": - return RedumpSystem.UltraCade; - - #endregion - - #region Others - - case "audio": - case "audiocd": - case "audio cd": - case "audio-cd": - return RedumpSystem.AudioCD; - case "bdvideo": - case "bd-video": - case "blurayvideo": - case "bluray video": - return RedumpSystem.BDVideo; - case "dvda": - case "dvdaudio": - case "dvd-audio": - return RedumpSystem.DVDAudio; - case "dvd": - case "dvdv": - case "dvdvideo": - case "dvd-video": - return RedumpSystem.DVDVideo; - case "enhancedcd": - case "enhanced cd": - case "enhanced-cd": - case "enhancedcdrom": - case "enhanced cdrom": - case "enhanced cd-rom": - return RedumpSystem.EnhancedCD; - case "hddvd": - case "hddvdv": - case "hddvdvideo": - case "hddvd-video": - case "hd-dvd-video": - case "hd dvd-video": - return RedumpSystem.HDDVDVideo; - case "navi21": - case "naviken": - case "naviken21": - case "naviken 2.1": - case "navisoftnaviken": - case "navisoft naviken": - case "navisoftnaviken21": - case "navisoft naviken 2.1": - return RedumpSystem.NavisoftNaviken21; - case "palm": - case "palmos": - case "palm os": - return RedumpSystem.PalmOS; - case "photo": - case "photocd": - case "photo cd": - case "photo-cd": - return RedumpSystem.PhotoCD; - case "psxgs": - case "gameshark": - case "psgameshark": - case "ps gameshark": - case "playstationgameshark": - case "playstation gameshark": - case "playstation gameshark updates": - return RedumpSystem.PlayStationGameSharkUpdates; - case "pocketpc": - case "pocket pc": - case "ppc": - return RedumpSystem.PocketPC; - case "rainbow": - case "rainbowdisc": - case "rainbow disc": - return RedumpSystem.RainbowDisc; - case "sp21": - case "pl21": - case "prologue21": - case "prologue 21": - case "segaprologue21": - case "sega prologue21": - case "sega prologue 21": - case "sega prologue 21 multimedia karaoke system": - return RedumpSystem.SegaPrologue21MultimediaKaraokeSystem; - case "electronicbook": - case "sonyelectronicbook": - case "sony electronic book": - return RedumpSystem.SonyElectronicBook; - case "sacd": - case "superaudiocd": - case "super audio cd": - return RedumpSystem.SuperAudioCD; - case "iktv": - case "taoiktv": - case "tao iktv": - return RedumpSystem.TaoiKTV; - case "ksite": - case "kisssite": - case "kiss-site": - case "tomykisssite": - case "tomy kisssite": - case "tomy kiss-site": - return RedumpSystem.TomyKissSite; - case "vcd": - case "videocd": - case "video cd": - return RedumpSystem.VideoCD; - - #endregion - - default: - return null; - } + return null; } #endregion