mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
RomFile.is_top_level guessed whether a file sat inside a rom folder from the number of slashes in its path, which only held for a two-level platform folder like roms/ps2. A single-file rom deeper than that (or a multi-file rom under a one-level folder) was never top level, so Hasheous, Playmatch and ScreenScraper dropped its hashes and logged "No hashes provided". Compare against the rom's path directly, matching the top_level_file_count subquery. Fixes #4775 Claude-Session: https://claude.ai/code/session_01SuQigfa5DhLqeA8XBnYPUk Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>