mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
Testing the custom library structure against a live library turned up four defects, all of them a path being reduced to a bare file name. Both exporters wrote a rom's `fs_name` alone, so every game a template nests was exported as if it sat in the platform folder: ES-DE and Pegasus could not find any of them. They now write the rom's path relative to the platform folder, the folder the metadata files themselves live in, and copy exported media into the matching subfolder so two identically named roms keep their own artwork. Merging into an existing gamelist.xml / metadata.pegasus.txt keyed entries by file name too, so identically named roms in different folders both merged into the first entry and produced duplicates. Entries are now keyed by path, with a Pegasus block matched by the folder its listed files sit in. Reading a gamelist.xml had the same collision: two roms sharing a file name both took the metadata of whichever entry was parsed last. A rom's own path now wins, and a bare file name stays a fallback key for the tools that write those, dropped when two entries share it. Default discovery surfaced hidden folders as multi-file games, unlike structured discovery which skips them. exclude_multi_roms now owns that rule for both. Also validate `exclude`'s exclusion_type: an unknown value reached `Config.__getattribute__` and returned a 500 rather than a 422. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>