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/FileSystemGCWii.cpp | |
| parent | b14bf8273245374e14b1b62a1ba5e26e4cccf42d (diff) | |
DiscIO: Move magic constants for discs to DiscUtils
Diffstat (limited to 'Source/Core/DiscIO/FileSystemGCWii.cpp')
| -rw-r--r-- | Source/Core/DiscIO/FileSystemGCWii.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/FileSystemGCWii.cpp b/Source/Core/DiscIO/FileSystemGCWii.cpp index cc48fa8f85..5b64931be7 100644 --- a/Source/Core/DiscIO/FileSystemGCWii.cpp +++ b/Source/Core/DiscIO/FileSystemGCWii.cpp @@ -232,9 +232,9 @@ FileSystemGCWii::FileSystemGCWii(const VolumeDisc* volume, const Partition& part { u8 offset_shift; // Check if this is a GameCube or Wii disc - if (volume->ReadSwapped<u32>(0x18, partition) == u32(0x5D1C9EA3)) + if (volume->ReadSwapped<u32>(0x18, partition) == WII_DISC_MAGIC) offset_shift = 2; // Wii file system - else if (volume->ReadSwapped<u32>(0x1c, partition) == u32(0xC2339F3D)) + else if (volume->ReadSwapped<u32>(0x1c, partition) == GAMECUBE_DISC_MAGIC) offset_shift = 0; // GameCube file system else return; // Invalid partition (maybe someone removed its data but not its partition table entry) |
