mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
Fold the folder name resolution into one home and make it case-insensitive end to end. Config folder names are lowercased as the config is parsed, so bindings, versions and the built-in alias table are all matched the same way. A SNES/ folder now resolves, and a binding written GameCube: matches a gamecube/ folder. Add resolve_fs_slug(), the inverse used to recover a renamed folder, which replaces the two swapped dicts in scan_platform. Only slugs reached by exactly one folder name are reversible, so recovery never guesses between amiga500, amiga600 and amiga1200. Validate system.platforms and system.versions through one helper that rejects empty and non-string values, and treat a null block as empty rather than exiting. Restore the atari800 override in the example configs: its folder name is itself a RomM slug, so it can never be an alias. A new test derives the needed overrides from the alias table to keep the examples honest. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>