From 7d570f1edb063dd2b486eb63cc78f9382b83a354 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 9 Mar 2021 21:06:57 +0100 Subject: DiscIO: Move magic constants for discs to DiscUtils --- Source/Core/DiscIO/DiscUtils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Core/DiscIO/DiscUtils.cpp') diff --git a/Source/Core/DiscIO/DiscUtils.cpp b/Source/Core/DiscIO/DiscUtils.cpp index f352c5d5c8..d0bcd66857 100644 --- a/Source/Core/DiscIO/DiscUtils.cpp +++ b/Source/Core/DiscIO/DiscUtils.cpp @@ -130,10 +130,9 @@ u64 GetBiggestReferencedOffset(const Volume& volume) // This can happen when certain programs that create WBFS files scrub the entirety of // the Masterpiece partitions in Super Smash Bros. Brawl without removing them from // the partition table. https://bugs.dolphin-emu.org/issues/8733 - constexpr u32 WII_MAGIC = 0x5D1C9EA3; const auto it = std::remove_if(partitions.begin(), partitions.end(), [&](const Partition& partition) { - return volume.ReadSwapped(0x18, partition) != WII_MAGIC; + return volume.ReadSwapped(0x18, partition) != WII_DISC_MAGIC; }); partitions.erase(it, partitions.end()); -- cgit v1.2.3