mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
Extract has_structure_path_a as its own cached property and have has_structure_path_b delegate to it, removing duplicated isdir checks. detect_library_structure and get_platforms_directory now read the named properties instead of re-implementing the roms-path check inline. Keep the inconclusive/bad-structure fallback defaulting to Structure A so a malformed library raises FolderStructureNotMatchException rather than listing the bare library root as a flat list of platforms. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>