mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-21 03:09:08 -05:00
fix: give an alias the region of its file
This commit is contained in:
1 parent
2804665b6c
commit
ac58bf68d4
2 files changed
+17
-1
No files matched your search
+5
-1
@@ -184,8 +184,12 @@ def build_region_index(profiles: dict) -> dict[str, dict]:
|
||||
# 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.
|
||||
# An alias is another name the core reads for the same file:
|
||||
# scph5552.bin, the name beetle_psx also opens for its European
|
||||
# BIOS, stayed in a --region jp pack once scph5502.bin went.
|
||||
aliases = {str(a) for a in f.get("aliases") or []}
|
||||
priority = f.get("priority")
|
||||
for key in {path, f.get("standalone_path") or "", name} - {""}:
|
||||
for key in {path, f.get("standalone_path") or "", name, *aliases} - {""}:
|
||||
entry = index.setdefault(
|
||||
key,
|
||||
{"regions": set(), "has_untagged": False, "emulators": [],
|
||||
|
||||
Reference in new issue
Block a user