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.
This commit is contained in:
Abdessamad Derraz committed 2026-11-10 07:00:01 +01:00
1 parent 08e603fb83
commit 9a4234e21f
2 files changed
+14 -2

No files matched your search

+6 -1
View File
@@ -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)}
+8 -1
View File
@@ -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("<section", 1)[0]
self.assertIn("[`apple2e.rom`](#sha1-d756eba578a6)", start)
line = next(row for row in start.splitlines() if row.startswith("- **Apple II**: "))
# The files to start with come before the first sentence ("MAME MESS
# reads ... instead"), which names what other emulators read.
named = line.removeprefix("- **Apple II**: ").split(". ", 1)[0].rstrip(".")
names = [part.strip() for part in named.split(", ")]
self.assertTrue(names)
for name in names:
self.assertRegex(name, r"^\[`[^`]+`\]\(#sha1-[0-9a-f]{12}\)$")
if __name__ == "__main__":