fix: keep the claims of every core on a file

The first profile reading a requirement hosts the others' claims,
and two ways of dropping the host dropped them too. DraStic brings its
own usrcheat.dat, and DSPerate, which reads the same file, lost it
wherever DraStic runs. A missing file was recorded for its first
reader alone: NAPALM.GRP named Raze, Data.rsdk Sonic Mania. A list
built for a board without that reader carried what the full list
left out, and install.py --target disagreed with the builder on
ROCKNIX, KNULLI, Batocera and RetroPie boards.
This commit is contained in:
Abdessamad Derraz committed 2026-11-10 02:08:11 +01:00
1 parent 2a6b8b5943
commit 3d2629f652
4 files changed
+89 -8

No files matched your search

+7 -4
View File
@@ -1263,11 +1263,14 @@ def _collect_emulator_extras(
placements = placement.places(u, dest)
save_root = u.get("root") == "save"
if not u["in_repo"]:
# Each core reading it is named on the omission: a list built
# without the first reader still has to say the file is missing.
for placed in placements:
missing = _report_extra(u, name, placed[0])
if save_root:
_save_fields(missing, placed[1], placement)
absent.append(missing)
for claim in (u, *u.get("other_claims", [])):
missing = _report_extra(claim, name, placed[0])
if save_root:
_save_fields(missing, placed[1], placement)
absent.append(missing)
continue
if not placements:
if unplaceable is not None: