From 9a4234e21fe3838b3e6f63c79fbfb291149f34df Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Tue, 10 Nov 2026 07:00:01 +0100 Subject: [PATCH] fix: list a region-free BIOS after regional ones The PlayStation section opened on psxonpsp660.bin under 'every region': since sets carry the requirement, ARMSX1's region-free member of its required BIOS set counts as required, and the world line came first, above the scph files most emulators read, and its card first. A file read for every region is a stand-in for each region's BIOS, so that line now follows the territories. The Apple II start now leads on BizHawk's and Mednafen's files, a tie of two readers with CLK's and POM2's apple2e.rom. The test named that one file. It now checks that every start file is a link, its intent. --- scripts/generate_site.py | 7 ++++++- tests/test_site_systems.py | 9 ++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/scripts/generate_site.py b/scripts/generate_site.py index be1bb26ed..a0d16497b 100644 --- a/scripts/generate_site.py +++ b/scripts/generate_site.py @@ -6599,11 +6599,16 @@ START_WITH_NAMES = 6 def _region_order() -> dict[str, int]: + """The regions a start line lists, the territories first. A file read + for every region is a region-free stand-in for the BIOS of each one: + the PlayStation section opened on psxonpsp660.bin, which one emulator + requires among the BIOS it accepts, above the scph files most read.""" from region import REGION_TREE, WORLD # noqa: PLC0415 - ordered = [WORLD] + ordered = [] for parent, members in REGION_TREE.items(): ordered += [parent, *sorted(members)] + ordered.append(WORLD) return {region: index for index, region in enumerate(ordered)} diff --git a/tests/test_site_systems.py b/tests/test_site_systems.py index a5996385a..8c3b99157 100644 --- a/tests/test_site_systems.py +++ b/tests/test_site_systems.py @@ -1268,7 +1268,14 @@ class EachFileDownloadsFromItsCard(unittest.TestCase): self.skipTest("site not generated") section = page.read_text(encoding="utf-8").split("## Apple II {", 1)[1] start = section.split("