From cdb102269600efc8aaddcdebee34d38335882fe9 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Sat, 27 Dec 2014 20:33:34 +0100 Subject: [PATCH] Zelda HLE: Add support for the ZTP Wii UCode. --- Source/Core/Core/HW/DSPHLE/UCodes/UCodes.cpp | 1 + Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/UCodes.cpp b/Source/Core/Core/HW/DSPHLE/UCodes/UCodes.cpp index f52d03c495..517a6fe190 100644 --- a/Source/Core/Core/HW/DSPHLE/UCodes/UCodes.cpp +++ b/Source/Core/Core/HW/DSPHLE/UCodes/UCodes.cpp @@ -61,6 +61,7 @@ UCodeInterface* UCodeFactory(u32 crc, DSPHLE* dsphle, bool wii) case 0x4be6a5cb: // Pikmin 1 GC - US case 0x42f64ac4: // Luigi's Mansion - US case 0x56d36052: // Super Mario Sunshine - US + case 0x6c3f6f94: // Zelda TP Wii - 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 c301206875..4852143b9b 100644 --- a/Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp +++ b/Source/Core/Core/HW/DSPHLE/UCodes/Zelda.cpp @@ -67,6 +67,8 @@ static const std::map UCODE_FLAGS = { // The Legend of Zelda: Twilight Princess / GC. // Donkey Kong Jungle Beat. { 0x6CA33A6D, MAKE_DOLBY_LOUDER }, + // The Legend of Zelda: Twilight Princess / Wii. + { 0x6C3F6F94, NO_ARAM | MAKE_DOLBY_LOUDER }, // Super Mario Galaxy. // Super Mario Galaxy 2. { 0xD643001F, NO_ARAM | MAKE_DOLBY_LOUDER }, @@ -1676,5 +1678,4 @@ void ZeldaAudioRenderer::DoState(PointerWrap& p) p.Do(m_buf_unk1_reverb_last8); p.Do(m_buf_front_left_reverb_last8); p.Do(m_buf_front_right_reverb_last8); - }