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-11-06 11:37:38 +00:00
|
|
|
AceCombat4,
|
2016-05-16 08:55:02 +00:00
|
|
|
ArTonelico2,
|
2016-11-06 11:37:38 +00:00
|
|
|
BigMuthaTruckers,
|
|
|
|
Black,
|
|
|
|
BlackHawkDown,
|
|
|
|
BleachBladeBattlers,
|
|
|
|
Bully,
|
|
|
|
BullyCC,
|
|
|
|
BurnoutDominator,
|
|
|
|
BurnoutRevenge,
|
|
|
|
BurnoutTakedown,
|
|
|
|
CaptainTsubasa,
|
|
|
|
CastlevaniaCoD,
|
|
|
|
CastlevaniaLoI,
|
2009-02-09 21:15:56 +00:00
|
|
|
Clannad,
|
2016-11-06 11:37:38 +00:00
|
|
|
CrashBandicootWoC,
|
|
|
|
CrashNburn,
|
|
|
|
DBZBT2,
|
|
|
|
DBZBT3,
|
|
|
|
DeathByDegreesTekkenNinaWilliams,
|
|
|
|
DemonStone,
|
|
|
|
DevilMayCry3,
|
|
|
|
Dororo,
|
2009-07-01 21:14:12 +00:00
|
|
|
DuelSaviorDestiny,
|
2016-11-06 11:37:38 +00:00
|
|
|
EternalPoison,
|
|
|
|
EvangelionJo,
|
|
|
|
FFVIIDoC,
|
2009-02-09 21:15:56 +00:00
|
|
|
FFX,
|
|
|
|
FFX2,
|
|
|
|
FFXII,
|
2016-11-06 11:37:38 +00:00
|
|
|
FightingBeautyWulong,
|
|
|
|
FinalFightStreetwise,
|
|
|
|
FrontMission5,
|
|
|
|
Genji,
|
|
|
|
GetaWay,
|
|
|
|
GetaWayBlackMonday,
|
|
|
|
GiTS,
|
|
|
|
GodHand,
|
|
|
|
GodOfWar,
|
|
|
|
GodOfWar2,
|
|
|
|
Grandia3,
|
2011-04-14 15:12:06 +00:00
|
|
|
GT3,
|
2016-11-06 11:37:38 +00:00
|
|
|
GT4,
|
|
|
|
GTASanAndreas,
|
2011-04-14 15:12:06 +00:00
|
|
|
GTConcept,
|
2016-11-06 11:37:38 +00:00
|
|
|
HarleyDavidson,
|
|
|
|
HarvestMoon,
|
|
|
|
HauntingGround,
|
|
|
|
HeavyMetalThunder,
|
|
|
|
HummerBadlands,
|
|
|
|
ICO,
|
2009-02-09 21:15:56 +00:00
|
|
|
IkkiTousen,
|
2016-11-06 11:37:38 +00:00
|
|
|
ItadakiStreet,
|
2009-02-09 21:15:56 +00:00
|
|
|
JackieChanAdv,
|
2016-11-06 11:37:38 +00:00
|
|
|
Jak1,
|
|
|
|
Jak2,
|
|
|
|
Jak3,
|
|
|
|
JakX,
|
|
|
|
JamesBondEverythingOrNothing,
|
|
|
|
KazokuKeikakuKokoroNoKizuna,
|
|
|
|
KnightsOfTheTemple2,
|
|
|
|
Kunoichi,
|
|
|
|
KyuuketsuKitanMoonties,
|
|
|
|
Lamune,
|
|
|
|
LegoBatman,
|
|
|
|
LordOfTheRingsThirdAge,
|
|
|
|
LordOfTheRingsTwoTowers,
|
|
|
|
MajokkoALaMode2,
|
|
|
|
Manhunt2,
|
|
|
|
MetalGearSolid3,
|
|
|
|
MetalSlug6,
|
|
|
|
MidnightClub3,
|
2009-02-09 21:15:56 +00:00
|
|
|
NamcoXCapcom,
|
2016-11-06 11:37:38 +00:00
|
|
|
NanoBreaker,
|
|
|
|
NarutimateAccel,
|
|
|
|
Naruto,
|
|
|
|
Okami,
|
|
|
|
Oneechanbara2Special,
|
|
|
|
OnePieceGrandAdventure,
|
|
|
|
OnePieceGrandBattle,
|
2009-02-09 21:15:56 +00:00
|
|
|
Onimusha3,
|
2016-11-06 11:37:38 +00:00
|
|
|
PiaCarroteYoukosoGPGakuenPrincess,
|
2009-07-02 16:05:03 +00:00
|
|
|
RadiataStories,
|
2016-11-06 11:37:38 +00:00
|
|
|
RedDeadRevolver,
|
|
|
|
ResidentEvil4,
|
|
|
|
RozenMaidenGebetGarden,
|
|
|
|
SacredBlaze,
|
|
|
|
SakuraTaisen,
|
|
|
|
SakuraWarsSoLongMyLove,
|
|
|
|
SDGundamGGeneration,
|
|
|
|
SeintoSeiya,
|
|
|
|
SengokuBasara,
|
|
|
|
SFEX3,
|
|
|
|
ShadowHearts,
|
|
|
|
ShadowofRome,
|
|
|
|
ShinOnimusha,
|
|
|
|
SilentHill2,
|
|
|
|
SilentHill3,
|
|
|
|
Simple2000Vol114,
|
|
|
|
SimpsonsGame,
|
|
|
|
Siren,
|
|
|
|
SkyGunner,
|
|
|
|
Sly2,
|
|
|
|
Sly3,
|
2009-11-04 10:56:38 +00:00
|
|
|
SMTDDS1,
|
2010-02-06 16:34:36 +00:00
|
|
|
SMTDDS2,
|
2016-11-06 11:37:38 +00:00
|
|
|
SMTNocturne,
|
|
|
|
SonicUnleashed,
|
|
|
|
SoTC,
|
|
|
|
SoulCalibur2,
|
|
|
|
SoulCalibur3,
|
|
|
|
Spartan,
|
|
|
|
SpyroEternalNight,
|
|
|
|
SpyroNewBeginning,
|
|
|
|
SSX3,
|
|
|
|
StarOcean3,
|
|
|
|
StarWarsBattlefront,
|
|
|
|
StarWarsBattlefront2,
|
|
|
|
StarWarsForceUnleashed,
|
|
|
|
SteambotChronicles,
|
2011-03-19 19:29:30 +00:00
|
|
|
SuikodenTactics,
|
2016-11-06 11:37:38 +00:00
|
|
|
SuperManReturns,
|
|
|
|
TalesOfAbyss,
|
|
|
|
TalesofDestiny,
|
|
|
|
TalesOfLegendia,
|
|
|
|
TalesofSymphonia,
|
|
|
|
Tekken5,
|
2011-03-27 12:53:53 +00:00
|
|
|
TenchuFS,
|
2016-11-06 11:37:38 +00:00
|
|
|
TenchuWoH,
|
2011-04-12 14:48:27 +00:00
|
|
|
TimeSplitters2,
|
2012-05-18 16:51:18 +00:00
|
|
|
TombRaiderAnniversary,
|
|
|
|
TombRaiderLegend,
|
2016-11-06 11:37:38 +00:00
|
|
|
TombRaiderUnderworld,
|
|
|
|
TomoyoAfter,
|
|
|
|
TouristTrophy,
|
|
|
|
UltramanFightingEvolution,
|
|
|
|
UrbanReign,
|
|
|
|
ValkyrieProfile2,
|
2012-05-18 16:51:18 +00:00
|
|
|
VF4,
|
2016-11-06 11:37:38 +00:00
|
|
|
VF4EVO,
|
|
|
|
WildArms4,
|
|
|
|
WildArms5,
|
|
|
|
XE3,
|
2011-09-06 01:22:40 +00:00
|
|
|
Yakuza,
|
|
|
|
Yakuza2,
|
2012-05-18 16:51:18 +00:00
|
|
|
ZettaiZetsumeiToshi2,
|
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
|
|
|
};
|