From b46c0828216233bc98fc7856fd9b168aa39c0c69 Mon Sep 17 00:00:00 2001 From: Cristi Mitrana <31816814+cmitu@users.noreply.github.com> Date: Wed, 27 Nov 2019 09:52:35 +0200 Subject: [PATCH] Add scraping support for ChannelF, OpenBOR, Solarus and ZX81 Sinclair --- es-app/src/PlatformId.cpp | 4 ++++ es-app/src/PlatformId.h | 4 ++++ es-app/src/scrapers/ScreenScraper.cpp | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/es-app/src/PlatformId.cpp b/es-app/src/PlatformId.cpp index 54a1a977e..a4fa7d4ab 100644 --- a/es-app/src/PlatformId.cpp +++ b/es-app/src/PlatformId.cpp @@ -36,6 +36,7 @@ namespace PlatformIds "nds", // nintendo DS "fds", // Famicom Disk System "nes", // nintendo entertainment system + "channelf", // Fairchild ChannelF "gb", // game boy "gba", // game boy advance "gbc", // game boy color @@ -44,6 +45,7 @@ namespace PlatformIds "wiiu", "virtualboy", "gameandwatch", + "openbor", "pc", "sega32x", "segacd", @@ -63,11 +65,13 @@ namespace PlatformIds "snes", // super nintendo entertainment system "scummvm", "x6800", + "solarus", "pcengine", // (aka turbografx-16) HuCards only "pcenginecd", // (aka turbografx-16) CD-ROMs only "wonderswan", "wonderswancolor", "zxspectrum", + "zx81", "videopac", "vectrex", "trs-80", diff --git a/es-app/src/PlatformId.h b/es-app/src/PlatformId.h index a4a53f861..8771fc10f 100644 --- a/es-app/src/PlatformId.h +++ b/es-app/src/PlatformId.h @@ -37,6 +37,7 @@ namespace PlatformIds NINTENDO_DS, FAMICOM_DISK_SYSTEM, NINTENDO_ENTERTAINMENT_SYSTEM, + FAIRCHILD_CHANNELF, GAME_BOY, GAME_BOY_ADVANCE, GAME_BOY_COLOR, @@ -45,6 +46,7 @@ namespace PlatformIds NINTENDO_WII_U, NINTENDO_VIRTUAL_BOY, NINTENDO_GAME_AND_WATCH, + OPENBOR, PC, SEGA_32X, SEGA_CD, @@ -64,11 +66,13 @@ namespace PlatformIds SUPER_NINTENDO, SCUMMVM, SHARP_X6800, + SOLARUS, TURBOGRAFX_16, // (aka PC Engine) HuCards only TURBOGRAFX_CD, // (aka PC Engine) CD-ROMs only WONDERSWAN, WONDERSWAN_COLOR, ZX_SPECTRUM, + ZX81_SINCLAR, VIDEOPAC_ODYSSEY2, VECTREX, TRS80_COLOR_COMPUTER, diff --git a/es-app/src/scrapers/ScreenScraper.cpp b/es-app/src/scrapers/ScreenScraper.cpp index 7be4ebbe4..13ee04a6d 100644 --- a/es-app/src/scrapers/ScreenScraper.cpp +++ b/es-app/src/scrapers/ScreenScraper.cpp @@ -46,6 +46,7 @@ const std::map screenscraper_platformid_map{ { NINTENDO_DS, 15 }, { FAMICOM_DISK_SYSTEM, 106 }, { NINTENDO_ENTERTAINMENT_SYSTEM, 3 }, + { FAIRCHILD_CHANNELF, 80 }, { GAME_BOY, 9 }, { GAME_BOY_ADVANCE, 12 }, { GAME_BOY_COLOR, 10 }, @@ -55,6 +56,7 @@ const std::map screenscraper_platformid_map{ { NINTENDO_VIRTUAL_BOY, 11 }, { NINTENDO_GAME_AND_WATCH, 52 }, { PC, 135 }, + { OPENBOR, 214 }, { SCUMMVM, 123}, { SEGA_32X, 19 }, { SEGA_CD, 20 }, @@ -66,6 +68,7 @@ const std::map screenscraper_platformid_map{ { SEGA_SATURN, 22 }, { SEGA_SG1000, 109 }, { SHARP_X6800, 79}, + { SOLARUS, 223 }, { PLAYSTATION, 57 }, { PLAYSTATION_2, 58 }, { PLAYSTATION_3, 59 }, @@ -78,6 +81,7 @@ const std::map screenscraper_platformid_map{ { WONDERSWAN, 45 }, { WONDERSWAN_COLOR, 46 }, { ZX_SPECTRUM, 76 }, + { ZX81_SINCLAR, 77 }, { VIDEOPAC_ODYSSEY2, 104 }, { VECTREX, 102 }, { TRS80_COLOR_COMPUTER, 144 },