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,
|
2017-10-14 11:00:26 +00:00
|
|
|
AceCombatZero,
|
2016-11-06 11:37:38 +00:00
|
|
|
AceCombat4,
|
2017-10-14 11:00:26 +00:00
|
|
|
AceCombat5,
|
2018-08-21 15:28:14 +00:00
|
|
|
ApeEscape2,
|
2016-05-16 08:55:02 +00:00
|
|
|
ArTonelico2,
|
2018-12-06 11:35:28 +00:00
|
|
|
Barnyard,
|
2016-11-06 11:37:38 +00:00
|
|
|
BigMuthaTruckers,
|
|
|
|
BleachBladeBattlers,
|
2017-10-14 11:00:26 +00:00
|
|
|
BrianLaraInternationalCricket,
|
2018-12-24 13:06:52 +00:00
|
|
|
Bully,
|
2016-11-06 11:37:38 +00:00
|
|
|
BurnoutDominator,
|
|
|
|
BurnoutRevenge,
|
|
|
|
BurnoutTakedown,
|
2009-02-09 21:15:56 +00:00
|
|
|
Clannad,
|
2016-11-06 11:37:38 +00:00
|
|
|
CrashBandicootWoC,
|
2018-01-11 22:10:44 +00:00
|
|
|
DarkCloud,
|
2016-11-06 11:37:38 +00:00
|
|
|
DBZBT2,
|
|
|
|
DBZBT3,
|
|
|
|
DeathByDegreesTekkenNinaWilliams,
|
2017-10-14 11:00:26 +00:00
|
|
|
DestroyAllHumans,
|
|
|
|
DestroyAllHumans2,
|
2009-07-01 21:14:12 +00:00
|
|
|
DuelSaviorDestiny,
|
2016-11-06 11:37:38 +00:00
|
|
|
EvangelionJo,
|
2009-02-09 21:15:56 +00:00
|
|
|
FFX,
|
|
|
|
FFX2,
|
|
|
|
FFXII,
|
2017-10-14 11:00:26 +00:00
|
|
|
FIFA03,
|
|
|
|
FIFA04,
|
|
|
|
FIFA05,
|
2016-11-06 11:37:38 +00:00
|
|
|
FightingBeautyWulong,
|
|
|
|
GetaWay,
|
|
|
|
GetaWayBlackMonday,
|
|
|
|
GiTS,
|
|
|
|
GodHand,
|
|
|
|
GodOfWar,
|
|
|
|
GodOfWar2,
|
2011-04-14 15:12:06 +00:00
|
|
|
GT3,
|
2016-11-06 11:37:38 +00:00
|
|
|
GT4,
|
2011-04-14 15:12:06 +00:00
|
|
|
GTConcept,
|
2016-11-06 11:37:38 +00:00
|
|
|
HarleyDavidson,
|
2018-07-31 00:43:21 +00:00
|
|
|
HarryPotterATCOS,
|
2019-07-08 01:15:19 +00:00
|
|
|
HarryPotterATGOF,
|
2018-10-19 20:16:00 +00:00
|
|
|
HarryPotterATHBP,
|
2018-07-31 00:43:21 +00:00
|
|
|
HarryPotterATPOA,
|
2018-07-17 22:53:46 +00:00
|
|
|
HarryPotterOOTP,
|
2016-11-06 11:37:38 +00:00
|
|
|
HauntingGround,
|
|
|
|
ICO,
|
2009-02-09 21:15:56 +00:00
|
|
|
IkkiTousen,
|
|
|
|
JackieChanAdv,
|
2018-12-11 12:44:54 +00:00
|
|
|
Jak1,
|
2016-11-06 11:37:38 +00:00
|
|
|
Jak2,
|
|
|
|
Jak3,
|
|
|
|
JakX,
|
|
|
|
KazokuKeikakuKokoroNoKizuna,
|
|
|
|
KnightsOfTheTemple2,
|
|
|
|
Kunoichi,
|
|
|
|
KyuuketsuKitanMoonties,
|
|
|
|
Lamune,
|
2017-10-14 11:00:26 +00:00
|
|
|
LegacyOfKainDefiance,
|
2016-11-06 11:37:38 +00:00
|
|
|
LordOfTheRingsThirdAge,
|
|
|
|
MajokkoALaMode2,
|
|
|
|
Manhunt2,
|
|
|
|
MetalSlug6,
|
|
|
|
MidnightClub3,
|
2018-06-26 18:23:12 +00:00
|
|
|
NicktoonsUnite,
|
2016-11-06 11:37:38 +00:00
|
|
|
Okami,
|
|
|
|
Oneechanbara2Special,
|
2019-10-25 23:00:31 +00:00
|
|
|
Persona3,
|
2016-11-06 11:37:38 +00:00
|
|
|
PiaCarroteYoukosoGPGakuenPrincess,
|
2019-07-08 01:15:19 +00:00
|
|
|
ProjectSnowblind,
|
2018-03-27 04:19:41 +00:00
|
|
|
Quake3Revolution,
|
2009-07-02 16:05:03 +00:00
|
|
|
RadiataStories,
|
2017-10-14 11:00:26 +00:00
|
|
|
RatchetAndClank,
|
|
|
|
RatchetAndClank2,
|
|
|
|
RatchetAndClank3,
|
|
|
|
RatchetAndClank4,
|
|
|
|
RatchetAndClank5,
|
2019-05-25 15:19:17 +00:00
|
|
|
RedDeadRevolver,
|
2017-10-14 11:00:26 +00:00
|
|
|
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,
|
|
|
|
Sly2,
|
|
|
|
Sly3,
|
|
|
|
SMTNocturne,
|
|
|
|
SonicUnleashed,
|
|
|
|
SoTC,
|
2017-10-14 11:00:26 +00:00
|
|
|
SoulReaver2,
|
2016-11-06 11:37:38 +00:00
|
|
|
Spartan,
|
|
|
|
StarOcean3,
|
|
|
|
SteambotChronicles,
|
|
|
|
SuperManReturns,
|
2018-04-13 10:10:22 +00:00
|
|
|
SVCChaos,
|
2016-11-06 11:37:38 +00:00
|
|
|
TalesOfAbyss,
|
|
|
|
TalesOfLegendia,
|
|
|
|
TalesofSymphonia,
|
|
|
|
Tekken5,
|
2011-03-27 12:53:53 +00:00
|
|
|
TenchuFS,
|
2016-11-06 11:37:38 +00:00
|
|
|
TenchuWoH,
|
2018-07-31 00:43:21 +00:00
|
|
|
TheIncredibleHulkUD,
|
2012-05-18 16:51:18 +00:00
|
|
|
TombRaiderAnniversary,
|
|
|
|
TombRaiderLegend,
|
2016-11-06 11:37:38 +00:00
|
|
|
TombRaiderUnderworld,
|
2017-10-14 11:00:26 +00:00
|
|
|
TribesAerialAssault,
|
2016-11-06 11:37:38 +00:00
|
|
|
TomoyoAfter,
|
|
|
|
TouristTrophy,
|
|
|
|
UltramanFightingEvolution,
|
|
|
|
UrbanReign,
|
|
|
|
ValkyrieProfile2,
|
2017-10-14 11:00:26 +00:00
|
|
|
Whiplash,
|
2016-11-06 11:37:38 +00:00
|
|
|
WildArms4,
|
|
|
|
WildArms5,
|
2018-12-20 22:11:42 +00:00
|
|
|
XenosagaE3,
|
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,
|
2019-08-11 12:43:08 +00:00
|
|
|
TextureInsideRt = 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[];
|
2017-05-26 16:17:01 +00:00
|
|
|
static std::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
|
|
|
};
|