fix: a declared alias settles the entry

This commit is contained in:
Abdessamad Derraz committed 2026-10-09 23:18:36 +02:00
1 parent fab7d4eb2f
commit ed49b26c12
2 files changed
+36 -2

No files matched your search

+5 -2
View File
@@ -399,8 +399,11 @@ def _candidate_verdict(
if outside_gap_scope(file_entry, is_standalone):
return "skip"
if not include_all:
archive = file_entry.get("archive")
if fname in declared_names or (archive and archive in declared_names):
# A platform declaring any name the core answers to has met the
# requirement: quasi88 reads n88sub.rom or disk.rom, and System.dat
# names disk.rom. Without the aliases the pack carried the ROM twice.
answers = {fname, file_entry.get("archive") or "", *file_entry.get("aliases", [])}
if answers & declared_names:
return "settled"
return "keep"