launcher: keep all semicolon-separated flags on a line in flags::from_text #43

Merged
ahmetbagci8 merged 1 commit from upstream-pr/43 into dev 2026-11-29 20:55:38 +00:00
ahmetbagci8 commented 2026-11-29 18:14:32 +00:00 (Migrated from github.com)

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

  • cargo test -p vi-launcher flags::tests (5 passed, 0 failed)
  • cargo clippy -p vi-launcher --tests (0 warnings)
<!-- greyfinch-sync:edsuuu/VI-BR-PORT:issue:5553635205 --> Imported from [edsuuu/VI-BR-PORT](https://github.com/edsuuu/VI-BR-PORT/pull/43). Originally posted by [ahmetbagci8](https://github.com/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 - cargo test -p vi-launcher flags::tests (5 passed, 0 failed) - cargo clippy -p vi-launcher --tests (0 warnings)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
edsuuu/VI-BR-PORT!43
No description provided.