hle: parse prefixed title ids in manifests #1420

Closed
ToxicmaggotRP wants to merge 1 commit from upstream-pr/1421 into main
ToxicmaggotRP commented 2026-11-24 17:55:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ToxicmaggotRP on 2026-11-24T17:55:37Z.


Fixes #715

Changes

  • Accept 0x and 0X prefixes in Game/TitleId before parsing the hexadecimal ID.
  • Keep the extracted body of self-closing XML elements empty, so following text is not attributed to them.
  • Add regression tests for both prefixes and self-closing element body isolation.

Validation

  • cargo test --locked -p victory-hle runtime::tests (4 passed)
  • rustfmt --edition 2024 --check crates/victory-hle/src/runtime.rs
  • git diff --check
<!-- greyfinch-sync:Marvisak/VIctory:issue:6588087002 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1421). Originally posted by [ToxicmaggotRP](https://github.com/ToxicmaggotRP) on 2026-11-24T17:55:37Z. --- Fixes #715 ## Changes - Accept `0x` and `0X` prefixes in `Game/TitleId` before parsing the hexadecimal ID. - Keep the extracted body of self-closing XML elements empty, so following text is not attributed to them. - Add regression tests for both prefixes and self-closing element body isolation. ## Validation - `cargo test --locked -p victory-hle runtime::tests` (4 passed) - `rustfmt --edition 2024 --check crates/victory-hle/src/runtime.rs` - `git diff --check`
acetonahard-code commented 2026-11-24 21:03:49 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by acetonahard-code on 2026-11-24T21:00:51Z.


Tested on Windows 11 with the repo toolchain, merged into current main (ffe310e):

cargo test -p victory-hle passed failed ignored
main 95 0 0
main + this PR 97 0 0
  • The 2 new tests pass.
  • cargo clippy --all-targets -- -D warnings, with and without --all-features: clean.

I didn't test with game data.


Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7144358970 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1421#issuecomment-7144358970). Originally posted by [acetonahard-code](https://github.com/acetonahard-code) on 2026-11-24T21:00:51Z. --- Tested on Windows 11 with the repo toolchain, merged into current `main` (ffe310e): | `cargo test -p victory-hle` | passed | failed | ignored | |---|---|---|---| | `main` | 95 | 0 | 0 | | `main` + this PR | 97 | 0 | 0 | - The 2 new tests pass. - `cargo clippy --all-targets -- -D warnings`, with and without `--all-features`: clean. I didn't test with game data. --- <sub>Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.</sub>
upstream-sync closed this pull request 2026-11-25 00:05:45 +00:00

Pull request closed

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
Marvisak/VIctory!1420
No description provided.