Merge pull request #14470 from cristian64/triforce_volume_region_fix
Triforce: Check only first byte in region flag.
This commit is contained in:
@@ -67,7 +67,7 @@ Country VolumeDisc::GetCountry(const Partition& partition) const
|
|||||||
{
|
{
|
||||||
const BootID* boot_id = static_cast<const VolumeGC*>(this)->GetTriforceBootID();
|
const BootID* boot_id = static_cast<const VolumeGC*>(this)->GetTriforceBootID();
|
||||||
|
|
||||||
switch (boot_id->region_flags)
|
switch (boot_id->region_flags & 0x000000FF)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
case 0x02: // JAPAN
|
case 0x02: // JAPAN
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ Region VolumeGC::GetRegion() const
|
|||||||
{
|
{
|
||||||
if (m_is_triforce)
|
if (m_is_triforce)
|
||||||
{
|
{
|
||||||
switch (m_triforce_header.region_flags)
|
switch (m_triforce_header.region_flags & 0x000000FF)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
case 0x02: // JAPAN
|
case 0x02: // JAPAN
|
||||||
|
|||||||
Reference in New Issue
Block a user