launcher: keep all semicolon-separated flags on a line in flags::from_text #43
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/43"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from edsuuu/VI-BR-PORT. Originally posted by ahmetbagci8 on 2026-11-29T18:14:32Z.
Problem
In pps/vi-launcher/src/flags.rs, rom_text called parse_pasted(body).into_iter().next() on each line. Although parse_pasted splits semicolon-separated flags on a single line (e.g. VICTORY_A=1;VICTORY_B=2), .into_iter().next() silently discarded every flag after the first without reporting them as skipped.
Fix
Iterate over all flags returned by parse_pasted(body) in rom_text, preserving enabled and deduplicating by flag name. Added unit test rom_text_keeps_all_semicolon_separated_flags_on_a_line.
Verification