pcsx2/plugins/GSdx/GSCrc.h

193 lines
3.3 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,
BrianLaraInternationalCricket,
Bully,
2016-11-06 11:37:38 +00:00
BurnoutDominator,
BurnoutRevenge,
BurnoutTakedown,
Clannad,
2016-11-06 11:37:38 +00:00
CrashBandicootWoC,
DarkCloud,
2016-11-06 11:37:38 +00:00
DBZBT2,
DBZBT3,
DeathByDegreesTekkenNinaWilliams,
DestroyAllHumans,
DestroyAllHumans2,
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,
GetaWay,
GetaWayBlackMonday,
GiTS,
GodHand,
GodOfWar,
GodOfWar2,
GT3,
2016-11-06 11:37:38 +00:00
GT4,
GTConcept,
2016-11-06 11:37:38 +00:00
HarleyDavidson,
HarryPotterATCOS,
HarryPotterATGOF,
HarryPotterATHBP,
HarryPotterATPOA,
HarryPotterOOTP,
2016-11-06 11:37:38 +00:00
HauntingGround,
ICO,
IkkiTousen,
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,
NicktoonsUnite,
2016-11-06 11:37:38 +00:00
Okami,
Oneechanbara2Special,
Persona3,
2016-11-06 11:37:38 +00:00
PiaCarroteYoukosoGPGakuenPrincess,
ProjectSnowblind,
Quake3Revolution,
RadiataStories,
RatchetAndClank,
RatchetAndClank2,
RatchetAndClank3,
RatchetAndClank4,
RatchetAndClank5,
RedDeadRevolver,
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,
SkyGunner,
SMTNocturne,
SonicUnleashed,
SoTC,
SoulReaver2,
2016-11-06 11:37:38 +00:00
Spartan,
StarOcean3,
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,
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,
TextureInsideRt = 2,
};
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);
};