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/FileSystemGCWii.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/DiscIO/FileSystemGCWii.cpp') 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(0x18, partition) == u32(0x5D1C9EA3)) + if (volume->ReadSwapped(0x18, partition) == WII_DISC_MAGIC) offset_shift = 2; // Wii file system - else if (volume->ReadSwapped(0x1c, partition) == u32(0xC2339F3D)) + else if (volume->ReadSwapped(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) -- cgit v1.2.3