mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-23 06:35:38 +00:00
147 lines
3.2 KiB
C++
147 lines
3.2 KiB
C++
// SPDX-License-Identifier: MIT
|
|
//
|
|
// EmulationStation Desktop Edition
|
|
// PlatformId.cpp
|
|
//
|
|
// Index of all supported systems/platforms.
|
|
//
|
|
|
|
#include "PlatformId.h"
|
|
|
|
#include <string.h>
|
|
#include <vector>
|
|
|
|
namespace PlatformIds
|
|
{
|
|
std::vector<std::string> PlatformNames = {
|
|
"unknown", // Nothing set.
|
|
|
|
"3do",
|
|
"amiga",
|
|
"amigacd32",
|
|
"amstradcpc",
|
|
"gx4000",
|
|
"apple2",
|
|
"apple2gs",
|
|
"arcade",
|
|
"atari800",
|
|
"atari2600",
|
|
"atari5200",
|
|
"atari7800",
|
|
"atarilynx",
|
|
"atarist",
|
|
"atarijaguar",
|
|
"atarijaguarcd",
|
|
"atarixe",
|
|
"atomiswave",
|
|
"colecovision",
|
|
"c64", // Commodore 64
|
|
"cdtv",
|
|
"intellivision",
|
|
"macintosh",
|
|
"xbox",
|
|
"xbox360",
|
|
"msx",
|
|
"neogeo",
|
|
"neogeocd",
|
|
"ngp", // Neo Geo Pocket
|
|
"ngpc", // Neo Geo Pocket Color
|
|
"n3ds", // Nintendo 3DS
|
|
"n64", // Nintendo 64
|
|
"nds", // Nintendo DS
|
|
"fds", // Famicom Disk System
|
|
"nes", // Nintendo Entertainment System
|
|
"channelf", // Fairchild Channel F
|
|
"gb", // Game Boy
|
|
"gba", // Game Boy Advance
|
|
"gbc", // Game Boy Color
|
|
"gamecube", // GameCube
|
|
"wii",
|
|
"wiiu",
|
|
"virtualboy",
|
|
"gameandwatch",
|
|
"pokemini",
|
|
"satellaview",
|
|
"sufami",
|
|
"openbor",
|
|
"dos",
|
|
"pc",
|
|
"sega32x",
|
|
"segacd",
|
|
"dreamcast",
|
|
"gamegear",
|
|
"genesis", // Sega Genesis
|
|
"mastersystem", // Sega Master System
|
|
"megadrive", // Sega Mega Drive
|
|
"saturn", // Sega Saturn
|
|
"sg-1000",
|
|
"psx",
|
|
"ps2",
|
|
"ps3",
|
|
"ps4",
|
|
"psvita",
|
|
"psp", // PlayStation Portable
|
|
"snes", // Super Nintendo Entertainment System
|
|
"scummvm",
|
|
"x1",
|
|
"x68000",
|
|
"solarus",
|
|
"pcengine", // (Aka turbografx-16), HuCards only
|
|
"pcenginecd", // (Aka turbografx-16), CD-ROMs only
|
|
"wonderswan",
|
|
"wonderswancolor",
|
|
"zxspectrum",
|
|
"zx81",
|
|
"odyssey2",
|
|
"vectrex",
|
|
"trs-80",
|
|
"coco",
|
|
"ags",
|
|
"astrocade",
|
|
"bbcmicro",
|
|
"cavestory",
|
|
"daphne",
|
|
"dragon32",
|
|
"famicom",
|
|
"love",
|
|
"lutro",
|
|
"mess",
|
|
"moonlight",
|
|
"moto",
|
|
"oric",
|
|
"pcfx",
|
|
"residualvm",
|
|
"samcoupe",
|
|
"supergrafx",
|
|
"stratagus",
|
|
"videopac",
|
|
"zmachine",
|
|
"ti99",
|
|
"naomi",
|
|
"uzebox",
|
|
"spectravideo",
|
|
"palm",
|
|
|
|
"ignore", // Do not allow scraping for this system.
|
|
"invalid"
|
|
};
|
|
|
|
PlatformId getPlatformId(const std::string& str)
|
|
{
|
|
if (str == "")
|
|
return PLATFORM_UNKNOWN;
|
|
|
|
for (unsigned int i = 1; i < PLATFORM_COUNT; i++) {
|
|
if (PlatformNames[i] == str)
|
|
return (PlatformId)i;
|
|
}
|
|
|
|
return PLATFORM_UNKNOWN;
|
|
}
|
|
|
|
const std::string getPlatformName(PlatformId id)
|
|
{
|
|
return PlatformNames[id];
|
|
}
|
|
}
|