fix: handle whitespace and XML escapes in game manifests #20

Manually merged
github merged 1 commit from gh-pr/20/head into gh-pr/20/base 2026-11-26 19:56:07 +00:00
Owner

@⁠lukaskliuc on GitHub · 2026-11-21 13:43 UTC · original
fix/manifest-attributes → main · +92 −16 · 2 files · 1 commits · merged 2026-11-22 09:58 UTC

Summary

scarlettx inspect reports that a package has no executable when its MicrosoftGame.Config uses Name = "hello_scarlett.exe". It also displays XML entities such as & verbatim in titles.

  • Allow XML whitespace around = and match complete attribute names.
  • Read quoted values through their closing quote, including literal > characters.
  • Decode the five predefined XML entities once and add regression coverage to test_game_config.

Verification

  • test_game_config failed before the fix and passed afterward in Windows Debug and Release (MSVC 19.29).
  • scarlettx inspect found the executable in the reformatted synthetic manifest and displayed Arcade & Racing for the escaped display name.
  • The full synthetic suite passed 20/23 tests in both configurations. The same three tests fail on main at bda18b4. The two child-process boot failures are addressed by #1, and the guest texture failure is addressed by #2.
**@⁠lukaskliuc** on GitHub · 2026-11-21 13:43 UTC · [original](https://github.com/Freminet/ScarlettX/pull/20) `fix/manifest-attributes` → `main` · +92 −16 · 2 files · 1 commits · merged 2026-11-22 09:58 UTC ## Summary `scarlettx inspect` reports that a package has no executable when its `MicrosoftGame.Config` uses `Name = "hello_scarlett.exe"`. It also displays XML entities such as `&` verbatim in titles. - Allow XML whitespace around `=` and match complete attribute names. - Read quoted values through their closing quote, including literal `>` characters. - Decode the five predefined XML entities once and add regression coverage to `test_game_config`. ## Verification - `test_game_config` failed before the fix and passed afterward in Windows Debug and Release (MSVC 19.29). - `scarlettx inspect` found the executable in the reformatted synthetic manifest and displayed `Arcade & Racing` for the escaped display name. - The full synthetic suite passed 20/23 tests in both configurations. The same three tests fail on `main` at `bda18b4`. The two child-process boot failures are addressed by #1, and the guest texture failure is addressed by #2.
Parse complete attribute names and quoted values so valid MicrosoftGame.Config formatting does not hide executables. Decode the five predefined XML entities once and cover the behavior in test_game_config.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:56:05 +00:00
github manually merged commit 6934854265 into gh-pr/20/base 2026-11-26 19:56:07 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.