Adjusted platform names.

This commit is contained in:
Aloshi 2014-05-28 14:20:28 -05:00
parent 327367b6bd
commit 23b826c4d3
3 changed files with 112 additions and 97 deletions

View file

@ -6,57 +6,63 @@ extern const char* mameNameToRealName[];
namespace PlatformIds namespace PlatformIds
{ {
const char* PlatformNames[PLATFORM_COUNT + 1] = { const char* PlatformNames[PLATFORM_COUNT + 1] = {
"unknown", // = 0, "unknown", // nothing set
"3do", // = 1, "3do",
"amiga", // = 2, "amiga",
"arcade", // = 3, "arcade",
"atari2600", // = 4, "apple2",
"atari5200", // = 5, "atari800",
"atari7800", // = 6, "atari2600",
"atariJaguar", // = 7, "atari5200",
"atariJaguarCD", // = 8, "atari7800",
"atariXE", // = 9, "atarilynx",
"colecovision", // = 10, "atarist",
"commodore64", // = 11, "atarijaguar",
"intellivision", // = 12, "atarijaguarcd",
"mac", // = 13, "atarixe",
"xbox", // = 14, "colecovision",
"xbox360", // = 15, "c64", // commodore 64
"neogeo", // = 16, "intellivision",
"ngp", // = 17, "mac",
"ngpc", // = 18, "xbox",
"n3ds", // = 19, "xbox360",
"n64", // = 20, "neogeo",
"nds", // = 21, "ngp", // neo geo pocket
"nes", // = 22, "ngpc", // neo geo pocket color
"gb", // = 23, "n3ds", // nintendo 3DS
"gba", // = 24, "n64", // nintendo 64
"gbc", // = 25, "nds", // nintendo DS
"gamecube", // = 26, "nes", // nintendo entertainment system
"wii", // = 27, "gb", // game boy
"wiiu", // = 28, "gba", // game boy advance
"pc", // = 29, "gbc", // game boy color
"sega32x", // = 30, "gc", // gamecube
"segacd", // = 31, "wii",
"dreamcast", // = 32, "wiiu",
"gamegear", // = 33, "pc",
"genesis", // = 34, "sega32x",
"mastersystem", // = 35, "segacd",
"megadrive", // = 36, "dreamcast",
"saturn", // = 37, "gamegear",
"psx", // = 38, "genesis", // sega genesis
"ps2", // = 39, "mastersystem", // sega master system
"ps3", // = 40, "megadrive", // sega megadrive
"ps4", // = 41, "saturn", // sega saturn
"psvita", // = 42, "psx",
"psp", // = 43, "ps2",
"snes", // = 44, "ps3",
"pcengine", // = 45, "ps4",
"zxspectrum", // = 46, "psvita",
"psp", // playstation portable
"snes", // super nintendo entertainment system
"pcengine", // turbografx-16/pcengine
"wonderswan",
"wonderswancolor",
"zxspectrum",
"ignore", // = 47 // do not allow scraping for this system "ignore", // do not allow scraping for this system
"invalid" // = 48 "invalid"
}; };
PlatformId getPlatformId(const char* str) PlatformId getPlatformId(const char* str)

View file

@ -8,55 +8,61 @@ namespace PlatformIds
{ {
PLATFORM_UNKNOWN = 0, PLATFORM_UNKNOWN = 0,
THREEDO = 1, //name can't start with a constant THREEDO, // name can't start with a constant
AMIGA = 2, AMIGA,
ARCADE = 3, APPLE_II,
ATARI_2600 = 4, ARCADE,
ATARI_5200 = 5, ATARI_800,
ATARI_7800 = 6, ATARI_2600,
ATARI_JAGUAR = 7, ATARI_5200,
ATARI_JAGUAR_CD = 8, ATARI_7800,
ATARI_XE = 9, ATARI_LYNX,
COLECOVISION = 10, ATARI_ST, // Atari ST/STE/Falcon
COMMODORE_64 = 11, ATARI_JAGUAR,
INTELLIVISION = 12, ATARI_JAGUAR_CD,
MAC_OS = 13, ATARI_XE,
XBOX = 14, COLECOVISION,
XBOX_360 = 15, COMMODORE_64,
NEOGEO = 16, INTELLIVISION,
NEOGEO_POCKET = 17, MAC_OS,
NEOGEO_POCKET_COLOR = 18, XBOX,
NINTENDO_3DS = 19, XBOX_360,
NINTENDO_64 = 20, NEOGEO,
NINTENDO_DS = 21, NEOGEO_POCKET,
NINTENDO_ENTERTAINMENT_SYSTEM = 22, NEOGEO_POCKET_COLOR,
GAME_BOY = 23, NINTENDO_3DS,
GAME_BOY_ADVANCE = 24, NINTENDO_64,
GAME_BOY_COLOR = 25, NINTENDO_DS,
NINTENDO_GAMECUBE = 26, NINTENDO_ENTERTAINMENT_SYSTEM,
NINTENDO_WII = 27, GAME_BOY,
NINTENDO_WII_U = 28, GAME_BOY_ADVANCE,
PC = 29, GAME_BOY_COLOR,
SEGA_32X = 30, NINTENDO_GAMECUBE,
SEGA_CD = 31, NINTENDO_WII,
SEGA_DREAMCAST = 32, NINTENDO_WII_U,
SEGA_GAME_GEAR = 33, PC,
SEGA_GENESIS = 34, SEGA_32X,
SEGA_MASTER_SYSTEM = 35, SEGA_CD,
SEGA_MEGA_DRIVE = 36, SEGA_DREAMCAST,
SEGA_SATURN = 37, SEGA_GAME_GEAR,
PLAYSTATION = 38, SEGA_GENESIS,
PLAYSTATION_2 = 39, SEGA_MASTER_SYSTEM,
PLAYSTATION_3 = 40, SEGA_MEGA_DRIVE,
PLAYSTATION_4 = 41, SEGA_SATURN,
PLAYSTATION_VITA = 42, PLAYSTATION,
PLAYSTATION_PORTABLE = 43, PLAYSTATION_2,
SUPER_NINTENDO = 44, PLAYSTATION_3,
TURBOGRAFX_16 = 45, PLAYSTATION_4,
ZX_SPECTRUM = 46, PLAYSTATION_VITA,
PLAYSTATION_PORTABLE,
SUPER_NINTENDO,
TURBOGRAFX_16, // (also PC Engine)
WONDERSWAN,
WONDERSWAN_COLOR,
ZX_SPECTRUM,
PLATFORM_IGNORE = 47, // do not allow scraping for this system PLATFORM_IGNORE, // do not allow scraping for this system
PLATFORM_COUNT = 48 PLATFORM_COUNT
}; };
PlatformId getPlatformId(const char* str); PlatformId getPlatformId(const char* str);

View file

@ -19,6 +19,7 @@ const std::map<PlatformId, const char*> gamesdb_platformid_map = boost::assign::
(ATARI_7800, "Atari 7800") (ATARI_7800, "Atari 7800")
(ATARI_JAGUAR, "Atari Jaguar") (ATARI_JAGUAR, "Atari Jaguar")
(ATARI_JAGUAR_CD, "Atari Jaguar CD") (ATARI_JAGUAR_CD, "Atari Jaguar CD")
(ATARI_LYNX, "Atari Lynx")
(ATARI_XE, "Atari XE") (ATARI_XE, "Atari XE")
(COLECOVISION, "Colecovision") (COLECOVISION, "Colecovision")
(COMMODORE_64, "Commodore 64") (COMMODORE_64, "Commodore 64")
@ -55,6 +56,8 @@ const std::map<PlatformId, const char*> gamesdb_platformid_map = boost::assign::
(PLAYSTATION_PORTABLE, "Sony PSP") (PLAYSTATION_PORTABLE, "Sony PSP")
(SUPER_NINTENDO, "Super Nintendo (SNES)") (SUPER_NINTENDO, "Super Nintendo (SNES)")
(TURBOGRAFX_16, "TurboGrafx 16") (TURBOGRAFX_16, "TurboGrafx 16")
(WONDERSWAN, "WonderSwan")
(WONDERSWAN_COLOR, "WonderSwan Color")
(ZX_SPECTRUM, "Sinclair ZX Spectrum"); (ZX_SPECTRUM, "Sinclair ZX Spectrum");