2010-04-25 00:31:27 +00:00
|
|
|
/*
|
2009-02-09 21:15:56 +00:00
|
|
|
* 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.
|
2010-04-25 00:31:27 +00:00
|
|
|
*
|
2009-02-09 21:15:56 +00:00
|
|
|
* 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.
|
2010-04-25 00:31:27 +00:00
|
|
|
*
|
2009-02-09 21:15:56 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with GNU Make; see the file COPYING. If not, write to
|
2012-09-09 18:16:11 +00:00
|
|
|
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA USA.
|
2009-02-09 21:15:56 +00:00
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CRC
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum Title
|
|
|
|
{
|
2011-02-23 09:16:00 +00:00
|
|
|
NoTitle,
|
2016-05-16 08:55:02 +00:00
|
|
|
ArTonelico2,
|
2009-02-09 21:15:56 +00:00
|
|
|
MetalSlug6,
|
|
|
|
TomoyoAfter,
|
|
|
|
Clannad,
|
2009-06-18 01:07:28 +00:00
|
|
|
Lamune,
|
2009-06-19 13:03:59 +00:00
|
|
|
KyuuketsuKitanMoonties,
|
2009-06-23 12:33:30 +00:00
|
|
|
PiaCarroteYoukosoGPGakuenPrincess,
|
2009-06-27 03:32:33 +00:00
|
|
|
KazokuKeikakuKokoroNoKizuna,
|
2009-07-01 21:14:12 +00:00
|
|
|
DuelSaviorDestiny,
|
2009-02-09 21:15:56 +00:00
|
|
|
FFX,
|
|
|
|
FFX2,
|
|
|
|
FFXII,
|
2010-08-15 14:48:07 +00:00
|
|
|
HauntingGround,
|
2009-02-09 21:15:56 +00:00
|
|
|
ShadowHearts,
|
|
|
|
Okami,
|
|
|
|
MetalGearSolid3,
|
|
|
|
DBZBT2,
|
|
|
|
DBZBT3,
|
|
|
|
SFEX3,
|
|
|
|
Bully,
|
|
|
|
BullyCC,
|
|
|
|
SoTC,
|
|
|
|
OnePieceGrandAdventure,
|
2009-07-04 15:14:04 +00:00
|
|
|
OnePieceGrandBattle,
|
2009-02-09 21:15:56 +00:00
|
|
|
ICO,
|
|
|
|
GT4,
|
2011-04-14 15:12:06 +00:00
|
|
|
GT3,
|
|
|
|
GTConcept,
|
2009-02-09 21:15:56 +00:00
|
|
|
WildArms5,
|
2010-07-24 00:04:54 +00:00
|
|
|
WildArms4,
|
2009-02-09 21:15:56 +00:00
|
|
|
Manhunt2,
|
|
|
|
CrashBandicootWoC,
|
|
|
|
ResidentEvil4,
|
|
|
|
Spartan,
|
|
|
|
AceCombat4,
|
|
|
|
Tekken5,
|
|
|
|
IkkiTousen,
|
|
|
|
GodOfWar,
|
|
|
|
GodOfWar2,
|
|
|
|
JackieChanAdv,
|
|
|
|
HarvestMoon,
|
|
|
|
NamcoXCapcom,
|
|
|
|
GiTS,
|
|
|
|
Onimusha3,
|
|
|
|
MajokkoALaMode2,
|
|
|
|
TalesOfAbyss,
|
2009-05-07 12:34:58 +00:00
|
|
|
SonicUnleashed,
|
2009-05-29 06:26:46 +00:00
|
|
|
SimpsonsGame,
|
2009-06-11 00:08:23 +00:00
|
|
|
Genji,
|
2009-07-01 21:14:12 +00:00
|
|
|
StarOcean3,
|
2009-07-02 00:47:50 +00:00
|
|
|
ValkyrieProfile2,
|
2009-07-02 16:05:03 +00:00
|
|
|
RadiataStories,
|
2009-07-04 15:14:04 +00:00
|
|
|
SMTNocturne,
|
2009-11-04 10:56:38 +00:00
|
|
|
SMTDDS1,
|
2010-02-06 16:34:36 +00:00
|
|
|
SMTDDS2,
|
2009-07-12 13:46:05 +00:00
|
|
|
RozenMaidenGebetGarden,
|
2012-05-18 16:51:18 +00:00
|
|
|
EvangelionJo,
|
2011-03-19 19:29:30 +00:00
|
|
|
SuikodenTactics,
|
2012-05-18 16:51:18 +00:00
|
|
|
CaptainTsubasa,
|
|
|
|
Oneechanbara2Special,
|
|
|
|
NarutimateAccel,
|
|
|
|
Naruto,
|
|
|
|
EternalPoison,
|
|
|
|
LegoBatman,
|
|
|
|
XE3,
|
2011-03-27 12:53:53 +00:00
|
|
|
TenchuWoH,
|
|
|
|
TenchuFS,
|
|
|
|
Sly3,
|
|
|
|
Sly2,
|
2012-05-18 16:51:18 +00:00
|
|
|
ShadowofRome,
|
2011-04-12 14:11:03 +00:00
|
|
|
DemonStone,
|
|
|
|
BigMuthaTruckers,
|
2011-04-12 14:48:27 +00:00
|
|
|
TimeSplitters2,
|
2011-04-15 15:42:28 +00:00
|
|
|
LordOfTheRingsTwoTowers,
|
2011-06-25 08:31:42 +00:00
|
|
|
LordOfTheRingsThirdAge,
|
2011-04-21 02:32:59 +00:00
|
|
|
RedDeadRevolver,
|
|
|
|
SpidermanWoS,
|
|
|
|
HeavyMetalThunder,
|
2011-04-25 13:47:29 +00:00
|
|
|
SilentHill3,
|
|
|
|
SilentHill2,
|
|
|
|
BleachBladeBattlers,
|
|
|
|
CastlevaniaCoD,
|
|
|
|
CastlevaniaLoI,
|
2012-05-18 16:51:18 +00:00
|
|
|
FinalFightStreetwise,
|
|
|
|
CrashNburn,
|
|
|
|
TombRaiderUnderworld,
|
|
|
|
TombRaiderAnniversary,
|
|
|
|
TombRaiderLegend,
|
|
|
|
SSX3,
|
2011-05-07 01:59:18 +00:00
|
|
|
Black,
|
2012-05-18 16:51:18 +00:00
|
|
|
VF4,
|
2011-06-03 09:03:28 +00:00
|
|
|
TyTasmanianTiger,
|
2011-07-29 18:11:22 +00:00
|
|
|
TyTasmanianTiger2,
|
2011-06-25 08:31:42 +00:00
|
|
|
FFVIIDoC,
|
|
|
|
DigimonRumbleArena2,
|
|
|
|
StarWarsForceUnleashed,
|
|
|
|
StarWarsBattlefront,
|
|
|
|
StarWarsBattlefront2,
|
|
|
|
BlackHawkDown,
|
2011-07-01 04:50:32 +00:00
|
|
|
DevilMayCry3,
|
2011-07-04 05:31:47 +00:00
|
|
|
BurnoutTakedown,
|
|
|
|
BurnoutRevenge,
|
|
|
|
BurnoutDominator,
|
2011-07-04 08:19:24 +00:00
|
|
|
MidnightClub3,
|
2011-07-29 18:11:22 +00:00
|
|
|
XmenOriginsWolverine,
|
|
|
|
CallofDutyFinalFronts,
|
|
|
|
SpyroNewBeginning,
|
|
|
|
SpyroEternalNight,
|
|
|
|
TalesOfLegendia,
|
2011-08-11 12:54:57 +00:00
|
|
|
NanoBreaker,
|
|
|
|
Kunoichi,
|
2011-09-06 01:22:40 +00:00
|
|
|
Yakuza,
|
|
|
|
Yakuza2,
|
2011-10-05 09:19:32 +00:00
|
|
|
SkyGunner,
|
|
|
|
JamesBondEverythingOrNothing,
|
2012-05-18 16:51:18 +00:00
|
|
|
Siren,
|
|
|
|
ZettaiZetsumeiToshi2,
|
|
|
|
VF4EVO,
|
|
|
|
Dororo,
|
|
|
|
ShinOnimusha,
|
|
|
|
GetaWay,
|
|
|
|
GetaWayBlackMonday,
|
|
|
|
SakuraTaisen,
|
|
|
|
SakuraWarsSoLongMyLove,
|
|
|
|
FightingBeautyWulong,
|
|
|
|
TouristTrophy,
|
|
|
|
GTASanAndreas,
|
|
|
|
FrontMission5,
|
|
|
|
GodHand,
|
|
|
|
KnightsOfTheTemple2,
|
|
|
|
UltramanFightingEvolution,
|
|
|
|
DeathByDegreesTekkenNinaWilliams,
|
|
|
|
AlpineRacer3,
|
|
|
|
HummerBadlands,
|
|
|
|
SengokuBasara,
|
|
|
|
Grandia3,
|
|
|
|
TalesofSymphonia,
|
|
|
|
TalesofDestiny,
|
|
|
|
SDGundamGGeneration,
|
GSdx: CRC hacks: duplicates/stuff:
- Console message for duplicate CRCs on our list.
- Removed trivial duplicates.
- Added some CRCs from comments on r5214
- Soul Calibur 2 now has the same crc hack as Soul Calibur 3.
We still need to address the following 7 duplicates (most were already there before r5214):
{0x7D4EA48F, HauntingGround, EU, 0},
{0x7D4EA48F, Genji, NoRegion, 0},
{0x7ACF7E03, ICO, NoRegion, 0},
{0x7ACF7E03, SpyroNewBeginning, NoRegion, 0},
{0x6BA2F6B9, ResidentEvil4, NoRegion, 0},
{0x6BA2F6B9, ResidentEvil4, EU, 0},
{0xD6385328, GodOfWar, US, 0},
{0xD6385328, GodOfWar, NoRegion, 0},
{0x1A85E924, GodOfWar, NoRegion, 0},
{0x1A85E924, DevilMayCry3, CH, 0},
{0x2F123FD8, GodOfWar2, RU, 0},
{0x2F123FD8, GodOfWar2, US, 0},
{0x23A97857, StarOcean3, US, 0},
{0x23A97857, StarOcean3, JPUNDUB, 0}
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5217 96395faa-99c1-11dd-bbfe-3dabce05a288
2012-05-19 18:31:53 +00:00
|
|
|
SoulCalibur2,
|
2012-05-18 16:51:18 +00:00
|
|
|
SoulCalibur3,
|
|
|
|
Simple2000Vol114,
|
|
|
|
SeintoSeiya,
|
|
|
|
UrbanReign,
|
2013-02-11 17:10:22 +00:00
|
|
|
SteambotChronicles,
|
2013-07-23 13:55:38 +00:00
|
|
|
SacredBlaze,
|
2015-07-05 15:32:57 +00:00
|
|
|
SuperManReturns,
|
2009-05-07 12:34:58 +00:00
|
|
|
TitleCount,
|
2009-02-09 21:15:56 +00:00
|
|
|
};
|
|
|
|
|
2010-04-25 00:31:27 +00:00
|
|
|
enum Region
|
2009-02-09 21:15:56 +00:00
|
|
|
{
|
2011-02-23 09:16:00 +00:00
|
|
|
NoRegion,
|
2010-04-25 00:31:27 +00:00
|
|
|
US,
|
|
|
|
EU,
|
|
|
|
JP,
|
|
|
|
JPUNDUB,
|
|
|
|
RU,
|
2009-02-09 21:15:56 +00:00
|
|
|
FR,
|
|
|
|
DE,
|
|
|
|
IT,
|
|
|
|
ES,
|
2012-05-18 16:51:18 +00:00
|
|
|
CH,
|
2009-07-12 13:46:05 +00:00
|
|
|
ASIA,
|
2011-04-26 11:14:26 +00:00
|
|
|
KO,
|
2009-07-12 13:46:05 +00:00
|
|
|
RegionCount,
|
2009-02-09 21:15:56 +00:00
|
|
|
};
|
|
|
|
|
2009-06-23 12:33:30 +00:00
|
|
|
enum Flags
|
|
|
|
{
|
|
|
|
PointListPalette = 1,
|
2009-07-04 15:14:04 +00:00
|
|
|
ZWriteMustNotClear = 2,
|
2009-06-23 12:33:30 +00:00
|
|
|
};
|
|
|
|
|
2010-04-25 00:31:27 +00:00
|
|
|
struct Game
|
2009-02-09 21:15:56 +00:00
|
|
|
{
|
2009-07-12 13:46:05 +00:00
|
|
|
uint32 crc;
|
|
|
|
Title title;
|
2009-02-09 21:15:56 +00:00
|
|
|
Region region;
|
2009-06-23 12:33:30 +00:00
|
|
|
uint32 flags;
|
2009-02-09 21:15:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
static Game m_games[];
|
2016-07-04 00:54:16 +00:00
|
|
|
static map<uint32, Game*> m_map;
|
2009-02-09 21:15:56 +00:00
|
|
|
|
|
|
|
public:
|
2009-05-14 16:41:52 +00:00
|
|
|
static Game Lookup(uint32 crc);
|
2009-02-09 21:15:56 +00:00
|
|
|
};
|