pcsx2/plugins/GSdx/GSCrc.h

207 lines
3.4 KiB
C
Raw Normal View History

/*
* Copyright (C) 2007-2009 Gabest
* http://www.gabest.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This Program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GNU Make; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA USA.
* http://www.gnu.org/copyleft/gpl.html
*
*/
#pragma once
class CRC
{
public:
enum Title
{
NoTitle,
AceCombatZero,
2016-11-06 11:37:38 +00:00
AceCombat4,
AceCombat5,
ApeEscape2,
ArTonelico2,
Barnyard,
2016-11-06 11:37:38 +00:00
BigMuthaTruckers,
BleachBladeBattlers,
BrianLaraInternationalCricket,
Bully,
2016-11-06 11:37:38 +00:00
BurnoutDominator,
BurnoutRevenge,
BurnoutTakedown,
CastlevaniaCoD,
CastlevaniaLoI,
Clannad,
2016-11-06 11:37:38 +00:00
CrashBandicootWoC,
DarkCloud,
2016-11-06 11:37:38 +00:00
DBZBT2,
DBZBT3,
DeathByDegreesTekkenNinaWilliams,
DemonStone,
DestroyAllHumans,
DestroyAllHumans2,
2016-11-06 11:37:38 +00:00
DevilMayCry3,
DuelSaviorDestiny,
2016-11-06 11:37:38 +00:00
EvangelionJo,
FFX,
FFX2,
FFXII,
FIFA03,
FIFA04,
FIFA05,
2016-11-06 11:37:38 +00:00
FightingBeautyWulong,
Genji,
GetaWay,
GetaWayBlackMonday,
GiTS,
GodHand,
GodOfWar,
GodOfWar2,
Grandia3,
GT3,
2016-11-06 11:37:38 +00:00
GT4,
GTASanAndreas,
GTConcept,
2016-11-06 11:37:38 +00:00
HarleyDavidson,
HarryPotterATCOS,
HarryPotterATHBP,
HarryPotterATPOA,
HarryPotterOOTP,
2016-11-06 11:37:38 +00:00
HauntingGround,
ICO,
IkkiTousen,
2016-11-06 11:37:38 +00:00
ItadakiStreet,
JackieChanAdv,
Jak1,
2016-11-06 11:37:38 +00:00
Jak2,
Jak3,
JakX,
KazokuKeikakuKokoroNoKizuna,
KnightsOfTheTemple2,
Kunoichi,
KyuuketsuKitanMoonties,
Lamune,
LegacyOfKainDefiance,
2016-11-06 11:37:38 +00:00
LordOfTheRingsThirdAge,
MajokkoALaMode2,
Manhunt2,
MetalSlug6,
MidnightClub3,
NanoBreaker,
NicktoonsUnite,
2016-11-06 11:37:38 +00:00
Okami,
Oneechanbara2Special,
Onimusha3,
2016-11-06 11:37:38 +00:00
PiaCarroteYoukosoGPGakuenPrincess,
Quake3Revolution,
RadiataStories,
RatchetAndClank,
RatchetAndClank2,
RatchetAndClank3,
RatchetAndClank4,
RatchetAndClank5,
2016-11-06 11:37:38 +00:00
ResidentEvil4,
RickyPontingInternationalCricket,
2016-11-06 11:37:38 +00:00
RozenMaidenGebetGarden,
SacredBlaze,
SakuraTaisen,
SakuraWarsSoLongMyLove,
SFEX3,
ShadowHearts,
ShadowofRome,
ShinOnimusha,
2018-03-18 18:40:38 +00:00
Shox,
2016-11-06 11:37:38 +00:00
Simple2000Vol114,
SimpsonsGame,
SkyGunner,
Sly2,
Sly3,
SMTDDS1,
SMTDDS2,
2016-11-06 11:37:38 +00:00
SMTNocturne,
SonicUnleashed,
SoTC,
SoulReaver2,
2016-11-06 11:37:38 +00:00
Spartan,
StarOcean3,
StarWarsForceUnleashed,
SteambotChronicles,
SuperManReturns,
SVCChaos,
2016-11-06 11:37:38 +00:00
TalesOfAbyss,
TalesOfLegendia,
TalesofSymphonia,
Tekken5,
TenchuFS,
2016-11-06 11:37:38 +00:00
TenchuWoH,
TheIncredibleHulkUD,
TimeSplitters2,
TombRaiderAnniversary,
TombRaiderLegend,
2016-11-06 11:37:38 +00:00
TombRaiderUnderworld,
TribesAerialAssault,
2016-11-06 11:37:38 +00:00
TomoyoAfter,
TouristTrophy,
UltramanFightingEvolution,
UrbanReign,
ValkyrieProfile2,
Whiplash,
2016-11-06 11:37:38 +00:00
WildArms4,
WildArms5,
XenosagaE3,
Yakuza,
Yakuza2,
ZettaiZetsumeiToshi2,
TitleCount,
};
enum Region
{
NoRegion,
US,
EU,
JP,
JPUNDUB,
RU,
FR,
DE,
IT,
ES,
CH,
ASIA,
KO,
RegionCount,
};
enum Flags
{
PointListPalette = 1,
};
struct Game
{
uint32 crc;
Title title;
Region region;
uint32 flags;
};
private:
static Game m_games[];
static std::map<uint32, Game*> m_map;
public:
static Game Lookup(uint32 crc);
};