fix: clk western sms bios answers latin america

CLK reads every export cartridge as Europe or USA and boots the western
BIOS for any region but Japan (StaticAnalyser.cpp:49-66,
MasterSystem.cpp:137-140). The tag named brazil without its parent, so
--region mx dropped the BIOS from the Batocera pack.
This commit is contained in:
Abdessamad Derraz committed 2026-11-05 11:51:53 +01:00
1 parent f5140aad0c
commit 34ef0cda1d
2 files changed
+7 -2

No files matched your search

+5
View File
@@ -509,6 +509,11 @@ class OneCodeOneRegionAnswer(unittest.TestCase):
profiles = common.load_emulator_profiles(self.PROFILES)
bios_sms = next(e for e in profiles["clk"]["files"] if e["name"] == "bios.sms")
self.assertIn("oceania", bios_sms["region"])
# A Mexican export cartridge is analysed as Europe or USA and boots the
# western BIOS: only Japan selects the other one.
self.assertEqual(
region.rank(region.normalize_declared(bios_sms["region"]), ["mexico"]), 0
)
tagged = {
e["name"]: e.get("region") for e in profiles["kronos"]["files"]
if e.get("archive") == "stvbios.zip" and e["name"].startswith("epr-")