mirror of
https://github.com/st3fan/ewm.git
synced 2026-11-25 22:24:51 +00:00
Add `machine.character_rom` — the socketed character (][) / video (//e) ROM, a `builtin:<SKU>` catalog key. Unlike the system ROMs (R4a, which feed the builders), the character ROM feeds the renderer: the frontend resolves the config's character_rom and calls Scr::set_character_rom(rom, model), which re-decodes the model's glyph set from that ROM — Chr::from_rom for the ][, ChrE::from_rom(_, mousetext) for the //e — instead of the catalog default. - config.rs: `Machine.character_rom: Option<String>` + validation (resolves). - chr.rs: Chr::from_rom (new decodes from it); ChrE::from_rom made pub. - scr.rs: Scr::set_character_rom rebuilds the model's set. - two.rs: Options.character_rom + the config<->options mappings; the frontend (both the SDL and headless/RFB Scr sites) applies it via apply_character_rom. - The four configs/apple2*.json carry character_rom (341-0036; the //e's 342-0133-A / 342-0265-A); --print-config shows it. Gate: set_character_rom_decodes_from_the_given_rom — re-applying a model's default video ROM is byte-identical, and a swapped ROM re-decodes the glyphs (the Enhanced-vs-original MouseText slot moves). Golden-BMP screenshots stay byte-identical; schema regenerated. fmt/clippy clean; full suite green. This completes the rom-catalog plan (R1-R4). Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>