* feat(platforms): split arcade aliases into per-emulator-family slugs
Give MAME, AdvanceMAME, FBNeo, FBA, Daphne, Singe and the arcade boards
that need their own emulator (NAOMI/NAOMI 2/NAOMI GD-ROM, Model 2/3,
Hikaru, Triforce, Lindbergh, Namco System 246/3xx, Gaelco, ...) their own
slugs with verified provider IDs. Providers without a dedicated entry fall
back to their Arcade platform via arcade_fallbacks(). MAME-only boards
(CPS1-3, System 16/32, Model 1, Namco 22) stay aliases of arcade.
Refs #5272
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(platforms): code-review pass on arcade slugs
- Retry IGDB on unmatched scans for every platform IGDB resolves, not
just slugs in IGDB_PLATFORM_LIST.
- Resolve config binding/version values through the alias table, so a
binding to a retired slug (cps2, model1, ...) still lands on a platform.
- Alias the Batocera `typex` folder to type-x.
- Build provider id->slug reverse maps before merging Arcade fallbacks.
- Share one MAME title lookup between base_handler and libretro.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* refactor(platforms): simplify pass on arcade slugs
- Alias the three RomM-keyed IGDB versions inside IGDB_PLATFORM_VERSIONS,
dropping IGDB_VERSION_SLUGS and _version_slug.
- Derive EmulatorJS arcade entries from ARCADE_SET_PLATFORMS.
- Remove the unused provider id->slug reverse maps, so the Arcade
fallback merge no longer has an ordering constraint.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(platforms): humanizer pass on arcade slug comments
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(platforms): settle arcade slug review decisions
- Migration 0154 moves platforms still on a retired MAME-only board slug
(cps1-3, model1, system16, system32, system-32) to arcade, so no row
carries a slug the enum no longer has.
- MAME shortname expansion keys off the RomM slug via
MAME_SHORTNAME_PLATFORMS instead of per-provider arcade ids, so Daphne,
Singe, Type X and Lindbergh sets are no longer read as MAME sets. Neo Geo
now expands at ScreenScraper too, as it already did at IGDB and Moby.
- fba offers fbneo before the FinalBurn Alpha CPS cores.
- AdvanceMAME leaves the WebRcade feed; EmulatorJS and WebRcade share
PLAYABLE_ARCADE_SET_PLATFORMS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(platforms): code-review pass (xhigh) on arcade slugs
Verify arcade-board BIOS files against the known list's arcade entries,
and make migration 0154 match retired slugs case-insensitively.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* refactor(platforms): simplify pass on arcade slugs
Apply IGDB family overrides once in get_platform instead of on each
return path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(platforms): use a slug with no shipped icon
singe now ships an icon, so the no-icon prefetch test needs a slug that never will.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(platforms): add a teknoparrot arcade slug
TeknoParrot runs PC-based arcade boards outside the MAME/FinalBurn family,
so its folder gets its own platform (RetroBat and ES-DE both use
`teknoparrot`). Providers fall back to their Arcade entry, MAME shortname
expansion skips it, and it gets a placeholder icon copied from `arcade`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(platforms): give each arcade-family icon its own marquee title
Redraws the ARCADE marquee on the copied cabinet icons with each
platform's name, in the Bungee typeface with the original inline and
extrusion styling. Sega boards use Sega blue, Namco systems Namco red,
and Type X Taito blue; the rest keep the original amber.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(platforms): code-review pass (xhigh) on arcade slugs
Neo Geo BIOS lives under arcade in the known BIOS list, so map
neogeoaes and neogeomvs there too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* refactor(platforms): simplify pass on arcade slug tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com>
* fix(platforms): share provider entries across duplicate slugs and rename system-32
Three consoles have two RomM slugs, each used by different providers, so a
library folder only matched the providers that knew its spelling:
vc-4000 / interton-vc-4000, apple-pippin / pippin and tandy-vis / vis.
DUPLICATE_PLATFORM_SLUGS lists them once, and fill_duplicate_slugs gives
each slug the other's entry in every provider table. pippin and
interton-vc-4000 now get an IGDB platform id, and IGDB's family override
also applies to a listed duplicate so both VC 4000 slugs stay in the
Interton family.
The system-32 slug mapped to Namco System 22 in ScreenScraper and
LaunchBox, easy to confuse with Sega System 32 (system32). It is now
namco-system-22. Folders and config bindings named system-32 still
resolve to it, and migration 0154 renames existing platform rows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XGA3D2oZ1hq3QUdnubMNXh
* fix(platforms): resolve bindings to a renamed slug back to their folder
resolve_platform_slug already maps a binding to system-32 onto
namco-system-22, but resolve_fs_slug compared the raw binding with the
new slug, so a moved folder bound to the old slug was never found.
Both now go through the same renamed-slug lookup.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XGA3D2oZ1hq3QUdnubMNXh
* fix(platforms): drop the system-32 slug backfill migration
Every scan resolves a platform's slug from its folder again, so the next
scan renames system-32 rows through the renamed-slug alias without a
migration, as the backend guide asks for normalizations the parser now
handles.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XGA3D2oZ1hq3QUdnubMNXh
* chore(platforms): reword two comments so the product isn't the actor
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XGA3D2oZ1hq3QUdnubMNXh
* revert(platforms): leave system-32 to the arcade slug split
rommapp/romm#5273 retires system-32 as an alias of arcade and resolves
aliases in config bindings in both directions, which covers what the
namco-system-22 rename and the renamed-slug lookup did here. This PR now
only shares provider entries across duplicate slugs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XGA3D2oZ1hq3QUdnubMNXh
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Both CI failures came from one import cycle. RQ could no longer resolve
`endpoints.sockets.scan.scan_platforms`, and the e2e seed script failed the
same way, because `sigil` imports the platform slug enum, importing anything
under `handler.metadata` runs its `__init__`, that reaches `gamelist_handler`
which imports `handler.filesystem`, and `roms_handler` there imports `sigil`
back while it is still half-initialised.
The cycle predates this branch. It stayed hidden because `scan.py` reached
the enum through `utils.switch`, imported late enough that
`handler.filesystem` was already loaded; naming the adapter directly moved
that import to the top of the module and the ordering luck ran out.
So the enum moves to `utils/platform_slugs.py`, which imports nothing but
`enum`. Naming a platform no longer drags in httpx, redis and the titledb
task, and the 29 call sites point at the module that owns it rather than
picking it up from a 1000-line metadata handler that happens to re-export
it. `import adapters.services.sigil` now also works on its own, which it
did not before.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
LaunchBox cloud lookups read from a Redis store that only the metadata
update task fills, but nothing surfaced when that store was empty. The
provider reported healthy, every search returned zero results, and the
logs said nothing.
- heartbeat now reports unhealthy until the store is populated, and an
empty store logs what to set to fix it
- the update task can be run manually whenever LAUNCHBOX_API_ENABLED is
on, instead of also requiring the scheduled-update flag
- the ~600k entry dump was buffered into a single pipeline, peaking at
1.7GB of RSS and writing nothing at all if the job was killed part way
through. Writes now go out in batches and parsed elements are dropped
as they are consumed, which caps the run at ~260MB. The task also gets
its own timeout, since the default 5 minutes does not cover a 100MB
download plus a 500MB parse
- alternate name lookups ignored the platform, so "Super Mario World" on
PlayStation matched Super Mario Bros.
- Coleco ADAM was spelled wrong, and Famicom / Super Famicom pointed at
platform names LaunchBox does not use
Fixes#3981
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>