fix: serve dolphin's PAL IPL for australia

Dolphin files the Australian country code under Region::PAL, whose
IPL lives in GC/EUR. Tagged europe alone, --region australia dropped
it and kept the American IPL, which Dolphin never reads for those
discs.
This commit is contained in:
Abdessamad Derraz committed 2026-10-17 09:20:13 +02:00
1 parent d0e9c4a8f0
commit 4f43442036
7 files changed
+24 -7

No files matched your search

+17
View File
@@ -401,6 +401,23 @@ class TestFallbackGroups(unittest.TestCase):
self.assertEqual(region.fallback_groups(groups, self.index, []), [])
class AustraliaReadsThePalIpl(unittest.TestCase):
"""Dolphin files the Australian country code U under Region::PAL
(Source/Core/DiscIO/Enums.cpp), whose IPL is GC/EUR. Tagged [europe]
alone, `--region australia` dropped it and kept the American one."""
def test_the_pal_ipl_answers_oceania(self):
profiles = common.load_emulator_profiles(
os.path.join(os.path.dirname(__file__), "..", "emulators")
)
for name in ("dolphin", "primehack", "ishiiruka", "triforce"):
with self.subTest(profile=name):
pal = [f for f in profiles[name]["files"]
if "/EUR/" in str(f.get("path", ""))]
self.assertTrue(pal)
self.assertTrue(all("oceania" in f.get("region", []) for f in pal))
class TestProfileConformance(unittest.TestCase):
"""Every region: value in the repo is a list of canonical slugs."""