fix: refuse profile narrowings without cores

MiSTer and BizHawk declare cores: []. --region, --one-per-slot and
--no-game-data read the profiles of the cores a platform runs, so their
packs and manifests withdrew nothing under a name and README that said
they had. generate_pack and verify now refuse the flags for a named
platform and leave it out under --all.
This commit is contained in:
Abdessamad Derraz committed 2026-11-06 15:01:58 +01:00
1 parent 13a10da993
commit 6bf62d5746
6 files changed
+123 -1

No files matched your search

+5
View File
@@ -140,6 +140,11 @@ Three rules keep a filtered pack usable:
- **Untagged files always survive.** Most BIOS are not regional and carry no
`region:` at all.
Regions, the search order `--one-per-slot` reads and the game data
`--no-game-data` cuts all come from the profiles of the cores a platform runs.
MiSTer and BizHawk declare no cores, their own databases decide, so the three
flags are refused for them. Under `--all` they are left out with a notice.
What this does and does not do: it shrinks the pack. It does not change how cores
pick a BIOS. Most cores already select per region from fixed filename lists driven
by the game's region (PicoDrive in `libretro.c`, Genesis Plus GX in `loadrom.c`),