mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
* fix(jsdos): play a .jsdos bundle that sits inside a game folder The play check read the ROM's own extension, which is empty for a folder, so a bundle moved into a folder (for example beside its manual) lost its Play button. The backend now exposes has_jsdos_bundle, true when the ROM is a bundle or has one at its folder's top level, and the js-dos player asks the content endpoint for that file instead of a zip of the folder. Fixes #5615 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(jsdos): assert the player downloads only the bundle file Addresses Greptile's review on #5672: covers the bundle file id in the player URL and drops a comment that restated the constant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * pr-ready: code-review Pin has_jsdos_bundle's value for a plain single file and for a bundle missing from disk, on both the SQL and the with_files path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011waFLKWoBw9KCu31UJJ7Te * pr-ready: code-review Expose missing_from_fs on RomFileSchema so the js-dos player skips a bundle gone from disk, the same rule has_jsdos_bundle applies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011waFLKWoBw9KCu31UJJ7Te * pr-ready: simplify Share the top-level file predicate and the present-file exists subquery between is_easyrpg_game and has_jsdos_bundle, compute the top-level files once in apply_file_stats, and fold the two marker flag tests into one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011waFLKWoBw9KCu31UJJ7Te * pr-ready: review-polish Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011waFLKWoBw9KCu31UJJ7Te * pr-ready: prose Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011waFLKWoBw9KCu31UJJ7Te * refactor(jsdos): rename isJsDosBundle to hasJsDosBundle It also matches a folder that holds a bundle, so the name now says what the backend flag it reads says. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011waFLKWoBw9KCu31UJJ7Te * fix(scan): derive a scanned rom's file flags from the files it read A scan emits scan:scanning_rom before it writes the rom's file rows, so a new rom reached clients with every file flag false (has_simple_single_file, has_multiple_files, has_jsdos_bundle and the rest) until a reload. The emits now derive those flags from the files the scan just read whenever it rebuilt them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011waFLKWoBw9KCu31UJJ7Te --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>