summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2014-12-23 21:39:57 +0100
committerPierre Bourdon <delroth@gmail.com>2015-08-14 16:01:32 +0200
commit3c2b22bc09b8bdfedd572618f96b68ad9566a718 (patch)
tree76aec9b73f6e4f41c5d5724e06f2b099fa829e33 /Source/Core
parenta0c318454ddad264b7c79495af3c202a80c710ac (diff)
Zelda HLE: Add basic support for Luigi's Mansion.
Fails ingame because it mixes to some buffers that are considered the back buffers for Dolby games. That check might need to be less restrictive for games that don't use Dolby mixing.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/HW/DSPHLE/UCodes/UCodes.cpp1
-rw-r--r--Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp5
2 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/UCodes.cpp b/Source/Core/Core/HW/DSPHLE/UCodes/UCodes.cpp
index d8e951ff74..0cf1d6fd5a 100644
--- a/Source/Core/Core/HW/DSPHLE/UCodes/UCodes.cpp
+++ b/Source/Core/Core/HW/DSPHLE/UCodes/UCodes.cpp
@@ -59,6 +59,7 @@ UCodeInterface* UCodeFactory(u32 crc, DSPHLE* dsphle, bool wii)
case 0x24b22038: // GC IPL - US
case 0x2fcdf1ec: // Zelda FSA - US
case 0x4be6a5cb: // Pikmin 1 GC - US
+ case 0x42f64ac4: // Luigi's Mansion - US
return new ZeldaUCode(dsphle, crc);
case 0x2ea36ce6: // Some Wii demos
diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp b/Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp
index bc188e5525..258a193568 100644
--- a/Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp
+++ b/Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp
@@ -44,8 +44,10 @@ static const std::map<u32, u32> UCODE_FLAGS = {
// GameCube IPL/BIOS, PAL.
{ 0x6BA3B3EA, LIGHT_PROTOCOL | FOUR_MIXING_DESTS },
// Pikmin 1 GC NTSC.
- // Anilam Crossing.
+ // Animal Crossing.
{ 0x4BE6A5CB, LIGHT_PROTOCOL },
+ // Luigi's Mansion.
+ { 0x42F64AC4, LIGHT_PROTOCOL },
// The Legend of Zelda: The Wind Waker.
{ 0x86840740, 0 },
// The Legend of Zelda: Four Swords Adventures.
@@ -57,7 +59,6 @@ static const std::map<u32, u32> UCODE_FLAGS = {
{ 0xD643001F, NO_ARAM | MAKE_DOLBY_LOUDER },
// TODO: Other games that use this UCode (exhaustive list):
- // * Luigi's Mansion (type ????, CRC ????)
// * Mario Kart: Double Dash!! (type ????, CRC ????)
// * Pikmin 2 (type ????, CRC ????)
// * Super Mario Galaxy 2 (type ????, CRC ????)