Add new platforms to scraper

This commit is contained in:
Leonardo S. Meira 2017-05-23 17:22:34 -03:00
parent d5b6201972
commit 0cf21a09fd
3 changed files with 23 additions and 3 deletions

View file

@ -43,6 +43,8 @@ namespace PlatformIds
"gc", // gamecube
"wii",
"wiiu",
"virtualboy",
"gameandwatch",
"pc",
"sega32x",
"segacd",
@ -52,6 +54,7 @@ namespace PlatformIds
"mastersystem", // sega master system
"megadrive", // sega megadrive
"saturn", // sega saturn
"sg-1000",
"psx",
"ps2",
"ps3",
@ -63,6 +66,10 @@ namespace PlatformIds
"wonderswan",
"wonderswancolor",
"zxspectrum",
"videopac",
"vectrex",
"trs-80",
"coco",
"ignore", // do not allow scraping for this system
"invalid"

View file

@ -43,6 +43,8 @@ namespace PlatformIds
NINTENDO_GAMECUBE,
NINTENDO_WII,
NINTENDO_WII_U,
NINTENDO_VIRTUAL_BOY,
NINTENDO_GAME_AND_WATCH,
PC,
SEGA_32X,
SEGA_CD,
@ -52,6 +54,7 @@ namespace PlatformIds
SEGA_MASTER_SYSTEM,
SEGA_MEGA_DRIVE,
SEGA_SATURN,
SEGA_SG1000,
PLAYSTATION,
PLAYSTATION_2,
PLAYSTATION_3,
@ -63,6 +66,10 @@ namespace PlatformIds
WONDERSWAN,
WONDERSWAN_COLOR,
ZX_SPECTRUM,
VIDEOPAC_ODYSSEY2,
VECTREX,
TRS80_COLOR_COMPUTER,
TANDY,
PLATFORM_IGNORE, // do not allow scraping for this system
PLATFORM_COUNT

View file

@ -28,7 +28,7 @@ const std::map<PlatformId, const char*> gamesdb_platformid_map = boost::assign::
(MAC_OS, "Mac OS")
(XBOX, "Microsoft Xbox")
(XBOX_360, "Microsoft Xbox 360")
// missing MSX
(MSX, "MSX")
(NEOGEO, "Neo Geo")
(NEOGEO_POCKET, "Neo Geo Pocket")
(NEOGEO_POCKET_COLOR, "Neo Geo Pocket Color")
@ -43,6 +43,8 @@ const std::map<PlatformId, const char*> gamesdb_platformid_map = boost::assign::
(NINTENDO_GAMECUBE, "Nintendo GameCube")
(NINTENDO_WII, "Nintendo Wii")
(NINTENDO_WII_U, "Nintendo Wii U")
(NINTENDO_VIRTUAL_BOY, "Nintendo Virtual Boy")
(NINTENDO_GAME_AND_WATCH, "Game & Watch")
(PC, "PC")
(SEGA_32X, "Sega 32X")
(SEGA_CD, "Sega CD")
@ -52,6 +54,7 @@ const std::map<PlatformId, const char*> gamesdb_platformid_map = boost::assign::
(SEGA_MASTER_SYSTEM, "Sega Master System")
(SEGA_MEGA_DRIVE, "Sega Mega Drive")
(SEGA_SATURN, "Sega Saturn")
(SEGA_SG1000, "SEGA SG-1000")
(PLAYSTATION, "Sony Playstation")
(PLAYSTATION_2, "Sony Playstation 2")
(PLAYSTATION_3, "Sony Playstation 3")
@ -62,8 +65,11 @@ const std::map<PlatformId, const char*> gamesdb_platformid_map = boost::assign::
(TURBOGRAFX_16, "TurboGrafx 16")
(WONDERSWAN, "WonderSwan")
(WONDERSWAN_COLOR, "WonderSwan Color")
(ZX_SPECTRUM, "Sinclair ZX Spectrum");
(ZX_SPECTRUM, "Sinclair ZX Spectrum")
(VIDEOPAC_ODYSSEY2, "Magnavox Odyssey 2")
(VECTREX, "Vectrex")
(TRS80_COLOR_COMPUTER, "TRS-80 Color Computer")
(TANDY, "TRS-80 Color Computer");
void thegamesdb_generate_scraper_requests(const ScraperSearchParams& params, std::queue< std::unique_ptr<ScraperRequest> >& requests,
std::vector<ScraperSearchResult>& results)