diff options
| author | JosJuice <josjuice@gmail.com> | 2021-03-09 21:06:57 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2021-03-10 00:16:37 +0100 |
| commit | 7d570f1edb063dd2b486eb63cc78f9382b83a354 (patch) | |
| tree | d13bf0c07a9bddcd047a0435505b1a9259a0a667 /Source/Core/DiscIO/DiscUtils.cpp | |
| parent | b14bf8273245374e14b1b62a1ba5e26e4cccf42d (diff) | |
DiscIO: Move magic constants for discs to DiscUtils
Diffstat (limited to 'Source/Core/DiscIO/DiscUtils.cpp')
| -rw-r--r-- | Source/Core/DiscIO/DiscUtils.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<u32>(0x18, partition) != WII_MAGIC; + return volume.ReadSwapped<u32>(0x18, partition) != WII_DISC_MAGIC; }); partitions.erase(it, partitions.end()); |
