Merge pull request #14470 from cristian64/triforce_volume_region_fix

Triforce: Check only first byte in region flag.
This commit is contained in:
JMC47
2026-03-25 17:47:20 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ Country VolumeDisc::GetCountry(const Partition& partition) const
{
const BootID* boot_id = static_cast<const VolumeGC*>(this)->GetTriforceBootID();
switch (boot_id->region_flags)
switch (boot_id->region_flags & 0x000000FF)
{
default:
case 0x02: // JAPAN

View File

@@ -92,7 +92,7 @@ Region VolumeGC::GetRegion() const
{
if (m_is_triforce)
{
switch (m_triforce_header.region_flags)
switch (m_triforce_header.region_flags & 0x000000FF)
{
default:
case 0x02: // JAPAN