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
|
2010-04-25 00:31:27 +00:00
|
|
|
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
2009-02-09 21:15:56 +00:00
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "StdAfx.h"
|
|
|
|
#include "GSCrc.h"
|
|
|
|
|
2010-04-25 00:31:27 +00:00
|
|
|
CRC::Game CRC::m_games[] =
|
2009-02-09 21:15:56 +00:00
|
|
|
{
|
2009-06-23 12:33:30 +00:00
|
|
|
{0x00000000, None, Unknown, 0},
|
|
|
|
{0x2113EA2E, MetalSlug6, Unknown, 0},
|
|
|
|
{0x42E05BAF, TomoyoAfter, JP, PointListPalette},
|
|
|
|
{0x7800DC84, Clannad, JP, PointListPalette},
|
|
|
|
{0xA6167B59, Lamune, JP, PointListPalette},
|
|
|
|
{0xDDB59F46, KyuuketsuKitanMoonties, JP, PointListPalette},
|
|
|
|
{0xC8EE2562, PiaCarroteYoukosoGPGakuenPrincess, JP, PointListPalette},
|
2009-06-27 03:32:33 +00:00
|
|
|
{0x6CF94A43, KazokuKeikakuKokoroNoKizuna, JP, PointListPalette},
|
2009-07-01 21:14:12 +00:00
|
|
|
{0xEDAF602D, DuelSaviorDestiny, JP, PointListPalette},
|
2009-06-23 12:33:30 +00:00
|
|
|
{0xa39517ab, FFX, EU, 0},
|
|
|
|
{0xa39517ae, FFX, FR, 0},
|
|
|
|
{0x941bb7d9, FFX, DE, 0},
|
|
|
|
{0xa39517a9, FFX, IT, 0},
|
|
|
|
{0x941bb7de, FFX, ES, 0},
|
|
|
|
{0xb4414ea1, FFX, RU, 0},
|
|
|
|
{0xee97db5b, FFX, RU, 0},
|
|
|
|
{0xaec495cc, FFX, RU, 0},
|
|
|
|
{0xbb3d833a, FFX, US, 0},
|
|
|
|
{0x6a4efe60, FFX, JP, 0},
|
|
|
|
{0x3866ca7e, FFX, ASIA, 0}, // int.
|
|
|
|
{0x658597e2, FFX, JP, 0}, // int.
|
|
|
|
{0x9aac5309, FFX2, EU, 0},
|
|
|
|
{0x9aac530c, FFX2, FR, 0},
|
|
|
|
{0x9aac530a, FFX2, FR, 0}, // ?
|
|
|
|
{0x9aac530d, FFX2, DE, 0},
|
|
|
|
{0x9aac530b, FFX2, IT, 0},
|
|
|
|
{0x48fe0c71, FFX2, US, 0},
|
|
|
|
{0xe1fd9a2d, FFX2, JP, 0}, // int.
|
|
|
|
{0x78da0252, FFXII, EU, 0},
|
|
|
|
{0xc1274668, FFXII, EU, 0},
|
|
|
|
{0xdc2a467e, FFXII, EU, 0},
|
|
|
|
{0xca284668, FFXII, EU, 0},
|
|
|
|
{0x280AD120, FFXII, JP, 0},
|
2010-08-15 14:48:07 +00:00
|
|
|
{0x08C1ED4D, HauntingGround, Unknown, 0},
|
|
|
|
{0x2CD5794C, HauntingGround, EU, 0},
|
|
|
|
{0x867BB945, HauntingGround, JP, 0},
|
|
|
|
{0xE263BC4B, HauntingGround, JP, 0},
|
|
|
|
{0x901AAC09, HauntingGround, US, 0},
|
2009-06-23 12:33:30 +00:00
|
|
|
{0x8BE3D7B2, ShadowHearts, Unknown, 0},
|
|
|
|
{0xDEFA4763, ShadowHearts, US, 0},
|
|
|
|
{0x21068223, Okami, US, 0},
|
|
|
|
{0x891f223f, Okami, FR, 0},
|
|
|
|
{0xC5DEFEA0, Okami, JP, 0},
|
|
|
|
{0x053D2239, MetalGearSolid3, US, 0},
|
|
|
|
{0x086273D2, MetalGearSolid3, FR, 0},
|
|
|
|
{0x26A6E286, MetalGearSolid3, EU, 0},
|
|
|
|
{0xAA31B5BF, MetalGearSolid3, Unknown, 0},
|
|
|
|
{0x9F185CE1, MetalGearSolid3, Unknown, 0},
|
|
|
|
{0x98D4BC93, MetalGearSolid3, EU, 0},
|
|
|
|
{0x86BC3040, MetalGearSolid3, US, 0}, //Subsistance disc 1
|
|
|
|
{0x0481AD8A, MetalGearSolid3, JP, 0},
|
|
|
|
{0x79ED26AD, MetalGearSolid3, EU, 0},
|
|
|
|
{0x5E31EA42, MetalGearSolid3, EU, 0},
|
2010-08-08 20:14:06 +00:00
|
|
|
{0xD7ED797D, MetalGearSolid3, EU, 0},
|
2009-06-23 12:33:30 +00:00
|
|
|
{0x278722BF, DBZBT2, US, 0},
|
|
|
|
{0xFE961D28, DBZBT2, US, 0},
|
|
|
|
{0x0393B6BE, DBZBT2, EU, 0},
|
|
|
|
{0xE2F289ED, DBZBT2, JP, 0}, // Sparking Neo!
|
2010-04-25 00:31:27 +00:00
|
|
|
{0x35AA84D1, DBZBT2, Unknown, 0},
|
2009-06-23 12:33:30 +00:00
|
|
|
{0x428113C2, DBZBT3, US, 0},
|
|
|
|
{0xA422BB13, DBZBT3, EU, 0},
|
2010-04-25 00:31:27 +00:00
|
|
|
{0x983C53D2, DBZBT3, Unknown, 0},
|
|
|
|
{0x983C53D3, DBZBT3, Unknown, 0},
|
2009-06-23 12:33:30 +00:00
|
|
|
{0x72B3802A, SFEX3, US, 0},
|
|
|
|
{0x71521863, SFEX3, US, 0},
|
|
|
|
{0x28703748, Bully, US, 0},
|
|
|
|
{0xC78A495D, BullyCC, US, 0},
|
|
|
|
{0xC19A374E, SoTC, US, 0},
|
|
|
|
{0x7D8F539A, SoTC, EU, 0},
|
|
|
|
{0x3122B508, OnePieceGrandAdventure, US, 0},
|
2009-07-17 23:45:32 +00:00
|
|
|
{0x8DF14A24, OnePieceGrandAdventure, EU, 0},
|
2009-07-16 21:36:07 +00:00
|
|
|
{0xB049DD5E, OnePieceGrandBattle, US, 0},
|
2009-07-04 15:14:04 +00:00
|
|
|
{0x5D02CC5B, OnePieceGrandBattle, Unknown, 0},
|
2009-06-23 12:33:30 +00:00
|
|
|
{0x6F8545DB, ICO, US, 0},
|
|
|
|
{0xB01A4C95, ICO, JP, 0},
|
|
|
|
{0x5C991F4E, ICO, Unknown, 0},
|
|
|
|
{0x7ACF7E03, ICO, Unknown, 0},
|
|
|
|
{0xAEAD1CA3, GT4, JP, 0},
|
|
|
|
{0x44A61C8F, GT4, Unknown, 0},
|
|
|
|
{0x0086E35B, GT4, Unknown, 0},
|
|
|
|
{0x77E61C8A, GT4, Unknown, 0},
|
|
|
|
{0xC164550A, WildArms5, JPUNDUB, 0},
|
|
|
|
{0xC1640D2C, WildArms5, US, 0},
|
|
|
|
{0x0FCF8FE4, WildArms5, EU, 0},
|
2010-04-25 00:31:27 +00:00
|
|
|
{0x2294D322, WildArms5, JP, 0},
|
2009-06-23 12:33:30 +00:00
|
|
|
{0x565B6170, WildArms5, JP, 0},
|
2010-07-24 00:04:54 +00:00
|
|
|
{0xBBC3EFFA, WildArms4, US, 0},
|
|
|
|
{0xBBC396EC, WildArms4, US, 0}, //hmm such a small diff in the CRC..
|
2010-08-19 13:01:26 +00:00
|
|
|
{0x7B2DE9CC, WildArms4, EU, 0},
|
2009-06-23 12:33:30 +00:00
|
|
|
{0x8B029334, Manhunt2, Unknown, 0},
|
|
|
|
{0x09F49E37, CrashBandicootWoC, Unknown, 0},
|
|
|
|
{0x013E349D, ResidentEvil4, US, 0},
|
|
|
|
{0x6BA2F6B9, ResidentEvil4, Unknown, 0},
|
|
|
|
{0x60FA8C69, ResidentEvil4, JP, 0},
|
|
|
|
{0x72E1E60E, Spartan, Unknown, 0},
|
|
|
|
{0x5ED8FB53, AceCombat4, JP, 0},
|
|
|
|
{0x1B9B7563, AceCombat4, Unknown, 0},
|
|
|
|
{0xEC432B24, Drakengard2, Unknown, 0},
|
|
|
|
{0xFC46EA61, Tekken5, JP, 0},
|
|
|
|
{0x1F88EE37, Tekken5, Unknown, 0},
|
2010-04-25 00:31:27 +00:00
|
|
|
{0x652050D2, Tekken5, Unknown, 0},
|
2009-06-23 12:33:30 +00:00
|
|
|
{0x9E98B8AE, IkkiTousen, JP, 0},
|
|
|
|
{0xD6385328, GodOfWar, US, 0},
|
|
|
|
{0xFB0E6D72, GodOfWar, EU, 0},
|
|
|
|
{0xEB001875, GodOfWar, EU, 0},
|
|
|
|
{0xA61A4C6D, GodOfWar, Unknown, 0},
|
|
|
|
{0xE23D532B, GodOfWar, Unknown, 0},
|
|
|
|
{0xDF1AF973, GodOfWar, Unknown, 0},
|
2010-04-25 00:31:27 +00:00
|
|
|
{0xD6385328, GodOfWar, Unknown, 0},
|
2009-06-23 12:33:30 +00:00
|
|
|
{0x2F123FD8, GodOfWar2, RU, 0},
|
|
|
|
{0x2F123FD8, GodOfWar2, US, 0},
|
|
|
|
{0x44A8A22A, GodOfWar2, EU, 0},
|
2009-11-04 10:56:38 +00:00
|
|
|
{0x4340C7C6, GodOfWar2, Unknown, 0},
|
|
|
|
{0xF8CD3DF6, GodOfWar2, Unknown, 0},
|
2010-02-06 16:34:36 +00:00
|
|
|
{0x0B82BFF7, GodOfWar2, Unknown, 0},
|
2009-06-23 12:33:30 +00:00
|
|
|
{0x5D482F18, JackieChanAdv, Unknown, 0},
|
|
|
|
{0xf0a6d880, HarvestMoon, US, 0},
|
|
|
|
{0x75c01a04, NamcoXCapcom, US, 0},
|
|
|
|
{0xBF6F101F, GiTS, US, 0},
|
|
|
|
{0xA5768F53, GiTS, JP, 0},
|
2010-04-25 00:31:27 +00:00
|
|
|
{0x6BF11378, Onimusha3, US, 0},
|
2009-06-23 12:33:30 +00:00
|
|
|
{0xF442260C, MajokkoALaMode2, JP, 0},
|
|
|
|
{0x14FE77F7, TalesOfAbyss, US, 0},
|
2009-07-01 21:14:12 +00:00
|
|
|
{0x045D77E9, TalesOfAbyss, JPUNDUB, 0},
|
2010-04-25 00:31:27 +00:00
|
|
|
{0xAA5EC3A3, TalesOfAbyss, JP, 0},
|
2009-06-23 12:33:30 +00:00
|
|
|
{0xFB236A46, SonicUnleashed, US, 0},
|
|
|
|
{0x4C7BB3C8, SimpsonsGame, Unknown, 0},
|
|
|
|
{0x4C94B32C, SimpsonsGame, Unknown, 0},
|
|
|
|
{0xD71B57F4, Genji, Unknown, 0},
|
2010-10-30 11:24:03 +00:00
|
|
|
{0xE04EA200, StarOcean3, EU, 0},
|
2010-03-02 17:30:03 +00:00
|
|
|
{0x23A97857, StarOcean3, US, 0},
|
|
|
|
{0xBEC32D49, StarOcean3, JP, 0},
|
2010-03-10 10:10:36 +00:00
|
|
|
{0x8192A241, StarOcean3, JP, 0}, //NTSC JP special directors cut limited extra sugar on top edition (the special one :p)
|
2009-07-01 21:14:12 +00:00
|
|
|
{0x23A97857, StarOcean3, JPUNDUB, 0},
|
2009-07-02 16:05:03 +00:00
|
|
|
{0xCC96CE93, ValkyrieProfile2, US, 0},
|
|
|
|
{0x774DE8E2, ValkyrieProfile2, JP, 0},
|
2009-07-04 15:14:04 +00:00
|
|
|
{0x04CCB600, ValkyrieProfile2, EU, 0},
|
2010-08-08 20:14:06 +00:00
|
|
|
{0xB65E141B, ValkyrieProfile2, EU, 0}, // PAL German
|
2009-07-04 15:14:04 +00:00
|
|
|
{0x47B9B2FD, RadiataStories, US, 0},
|
2010-02-05 23:43:03 +00:00
|
|
|
{0xE8FCF8EC, SMTNocturne, US, ZWriteMustNotClear}, // saves/reloads z buffer around shadow drawing, same issue with all the SMT games following
|
|
|
|
{0xF0A31EE3, SMTNocturne, EU, ZWriteMustNotClear}, // SMTNocturne (Lucifers Call in EU)
|
2010-05-07 22:10:36 +00:00
|
|
|
{0xAE0DE7B7, SMTNocturne, EU, ZWriteMustNotClear}, // SMTNocturne (Lucifers Call in EU)
|
2010-02-05 23:43:03 +00:00
|
|
|
{0xD60DA6D4, SMTNocturne, JP, ZWriteMustNotClear}, // SMTNocturne
|
|
|
|
{0x0e762e8d, SMTNocturne, JP, ZWriteMustNotClear}, // SMTNocturne Maniacs
|
2010-04-25 00:31:27 +00:00
|
|
|
{0x47BA9034, SMTNocturne, JP, ZWriteMustNotClear}, // SMTNocturne Maniacs Chronicle
|
2010-02-05 23:43:03 +00:00
|
|
|
{0xD7273511, SMTDDS1, US, ZWriteMustNotClear}, // SMT Digital Devil Saga
|
|
|
|
{0x1683A6BE, SMTDDS1, EU, ZWriteMustNotClear}, // SMT Digital Devil Saga
|
|
|
|
{0x44865CE1, SMTDDS1, JP, ZWriteMustNotClear}, // SMT Digital Devil Saga
|
2010-02-10 18:44:58 +00:00
|
|
|
{0xD382C164, SMTDDS2, US, ZWriteMustNotClear}, // SMT Digital Devil Saga 2
|
2010-08-08 20:14:06 +00:00
|
|
|
{0xD568B684, SMTDDS2, EU, ZWriteMustNotClear}, // SMT Digital Devil Saga 2
|
2010-02-06 16:34:36 +00:00
|
|
|
{0xE47C1A9C, SMTDDS2, JP, ZWriteMustNotClear}, // SMT Digital Devil Saga 2
|
2009-07-12 13:46:05 +00:00
|
|
|
{0x0B8AB37B, RozenMaidenGebetGarden, JP, 0},
|
2009-02-09 21:15:56 +00:00
|
|
|
};
|
|
|
|
|
2009-05-14 16:41:52 +00:00
|
|
|
hash_map<uint32, CRC::Game*> CRC::m_map;
|
2009-02-09 21:15:56 +00:00
|
|
|
|
2009-05-14 16:41:52 +00:00
|
|
|
CRC::Game CRC::Lookup(uint32 crc)
|
2009-02-09 21:15:56 +00:00
|
|
|
{
|
2009-05-11 08:18:00 +00:00
|
|
|
if(m_map.empty())
|
2009-02-09 21:15:56 +00:00
|
|
|
{
|
|
|
|
for(int i = 0; i < countof(m_games); i++)
|
|
|
|
{
|
|
|
|
m_map[m_games[i].crc] = &m_games[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-05-14 16:41:52 +00:00
|
|
|
hash_map<uint32, Game*>::iterator i = m_map.find(crc);
|
2009-05-11 08:18:00 +00:00
|
|
|
|
|
|
|
if(i != m_map.end())
|
2009-02-09 21:15:56 +00:00
|
|
|
{
|
2009-06-27 03:32:33 +00:00
|
|
|
return *i->second;
|
2009-02-09 21:15:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return m_games[0];
|
2010-04-25 00:31:27 +00:00
|
|
|
}
|