mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-03 08:33:46 -06:00
fix: an alias read settles the names tried first
This commit is contained in:
1 parent
49b47355b9
commit
052986c923
3 files changed
+18
No files matched your search
@@ -350,12 +350,18 @@ def map_run(layout: Layout, staged: set[str], rep: dict, profile: dict) -> tuple
|
||||
by_name: dict[str, list[str]] = {}
|
||||
for rel in layout.files:
|
||||
by_name.setdefault(rel.rsplit("/", 1)[-1].casefold(), []).append(rel)
|
||||
# An entry the core found under one of its names asks for nothing more:
|
||||
# BlastEm tries tmss.md, then reads bios_MD.bin, both names of one entry.
|
||||
read = {item["path"] for item in opened if not item["created"]}
|
||||
satisfied = {entry["name"] for entry in libretro_entries(profile) if read & set(entry_paths(entry))}
|
||||
findings = []
|
||||
for path in rep.get("files_probed_absent") or ():
|
||||
names = declaring(profile, path)
|
||||
if path in layout.files:
|
||||
findings.append({"kind": "not_staged", "path": path, "declared_by": names, "paths": [path]})
|
||||
continue
|
||||
if names and set(names) <= satisfied:
|
||||
continue
|
||||
elsewhere = sorted(p for p in by_name.get(path.rsplit("/", 1)[-1].casefold(), ()) if p != path)
|
||||
if elsewhere:
|
||||
kind = "elsewhere"
|
||||
|
||||
Reference in new issue
Block a user