From 70a25bef4ca03cfe055c138bbeb630ab0b442437 Mon Sep 17 00:00:00 2001 From: BhaaL Date: Mon, 13 Mar 2017 17:51:08 +0100 Subject: [PATCH] put the source reference onto its own line to avoid the awkward formatting also, make them constexpr, because i guess it makes sense... --- Source/Core/Core/Boot/Boot.cpp | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/Source/Core/Core/Boot/Boot.cpp b/Source/Core/Core/Boot/Boot.cpp index 897891f253..23cbaceed1 100644 --- a/Source/Core/Core/Boot/Boot.cpp +++ b/Source/Core/Core/Boot/Boot.cpp @@ -167,19 +167,23 @@ bool CBoot::LoadMapFromFilename() // It does not initialize the hardware or anything else like BS1 does. bool CBoot::Load_BS2(const std::string& _rBootROMFilename) { - // CRC32 - const u32 USA_v1_0 = - 0x6D740AE7; // https://forums.dolphin-emu.org/Thread-unknown-hash-on-ipl-bin?pid=385344#pid385344 - const u32 USA_v1_1 = - 0xD5E6FEEA; // https://forums.dolphin-emu.org/Thread-unknown-hash-on-ipl-bin?pid=385334#pid385334 - const u32 USA_v1_2 = - 0x86573808; // https://forums.dolphin-emu.org/Thread-unknown-hash-on-ipl-bin?pid=385399#pid385399 - const u32 BRA_v1_0 = - 0x667D0B64; // GameCubes sold in Brazil have this IPL. Same as USA v1.2 but localized - const u32 JAP_v1_0 = 0x6DAC1F2A; // Redump - const u32 JAP_v1_1 = 0xD235E3F9; // https://bugs.dolphin-emu.org/issues/8936 - const u32 PAL_v1_0 = 0x4F319F43; // Redump - const u32 PAL_v1_2 = 0xAD1B7F16; // Redump + // CRC32 hashes of the IPL file; including source where known + // https://forums.dolphin-emu.org/Thread-unknown-hash-on-ipl-bin?pid=385344#pid385344 + constexpr u32 USA_v1_0 = 0x6D740AE7; + // https://forums.dolphin-emu.org/Thread-unknown-hash-on-ipl-bin?pid=385334#pid385334 + constexpr u32 USA_v1_1 = 0xD5E6FEEA; + // https://forums.dolphin-emu.org/Thread-unknown-hash-on-ipl-bin?pid=385399#pid385399 + constexpr u32 USA_v1_2 = 0x86573808; + // GameCubes sold in Brazil have this IPL. Same as USA v1.2 but localized + constexpr u32 BRA_v1_0 = 0x667D0B64; + // Redump + constexpr u32 JAP_v1_0 = 0x6DAC1F2A; + // https://bugs.dolphin-emu.org/issues/8936 + constexpr u32 JAP_v1_1 = 0xD235E3F9; + // Redump + constexpr u32 PAL_v1_0 = 0x4F319F43; + // Redump + constexpr u32 PAL_v1_2 = 0xAD1B7F16; // Load the whole ROM dump std::string data;