fix: index the standalone layout for regions

GC/EUR/IPL.bin fell through to its bare name and the union of five regions, so a Batocera or standalone Dolphin pack never reduced it. The GameCube IPLs of four Dolphin-family profiles now name their system, as the MMJR profiles do.
This commit is contained in:
Abdessamad Derraz committed 2026-10-18 19:51:03 +02:00
1 parent 6c7f1c9d06
commit 7482cfefab
7 files changed
+37 -3

No files matched your search

+4 -2
View File
@@ -181,9 +181,11 @@ def build_region_index(profiles: dict) -> dict[str, dict]:
path = f.get("path") or ""
# Path-keyed so same-named entries stay separate (Dolphin declares
# three IPL.bin), name-keyed so a candidate identified by name alone
# sees the union and is never dropped on ambiguity.
# sees the union and is never dropped on ambiguity. The standalone
# layout is a path of its own: GC/EUR/IPL.bin fell through to the
# bare name and its five-region union, and was never reduced.
priority = f.get("priority")
for key in {path, name} - {""}:
for key in {path, f.get("standalone_path") or "", name} - {""}:
entry = index.setdefault(
key,
{"regions": set(), "has_untagged": False, "emulators": [],