HLE: the retail console ID has the documented dotted form #1717
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1717
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1717"
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?
@davutsimsekk on GitHub · 2026-11-24 21:14 UTC · original
davutsimsekk:fix/retail-console-id→main· +21 −2 · 1 files · 1 commits · openXSystemGetConsoleIdreported00000000000000000000000000000000000001, but the GDK documents the retail value as00000000.00000000.00000000.00000000.00: "In RETAIL, this function will always return" that dotted value. The HLE reportsSANDBOX = "RETAIL", so the undotted string was both the wrong value and the wrong format for a title that parses the documented groups.The length is unchanged (38 characters, 39 bytes with the NUL), so only the constant changes. A test checks the exact bytes and that a 38-byte buffer still fails with
E_NOT_SUFFICIENT_BUFFER.Reference: https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xsystem/functions/xsystemgetconsoleid
Test
the_console_id_is_the_documented_retail_valueinxsystem::tests.cargo test -p victory-hle --lib: 95 passed, 0 failedcargo clippy -p victory-hle --all-targets --locked -- -D warnings: cleanrustfmt --edition 2024 --check crates/victory-hle/src/modules/xsystem.rs: clean@kais7654 on GitHub · 2026-11-24 22:38 UTC · original
Reviewed and verified: the dotted form keeps the documented 39 bytes
with the NUL (the new test checks size, content, and the short-buffer
refusal), and nothing else in the tree depended on the old string. Test
passes on Windows.
@Marvisak on GitHub · 2026-11-25 03:35 UTC · original · edited 2026-11-25 20:22 UTC
Automated triage for the maintainers.
Merge candidate. The new head
7b5e855makes the one change the previous review asked for. The assertion message inthe_console_id_is_the_documented_retail_value(crates/victory-hle/src/modules/xsystem.rs) now reads "the console ID is 39 bytes, NUL included", so the diff no longer carries an identifier from the SDK's headers.The rest is unchanged.
CONSOLE_IDbecomes the publicly documented retail value00000000.00000000.00000000.00000000.00, with the same 38 characters and 39 bytes with the NUL. The test checks the exact bytes, the reported size, and that a 38-byte buffer still getsE_NOT_SUFFICIENT_BUFFER. The practical effect is small, sincemainnotes that the titles seen don't call this slot.CI: passing.
Generated by Claude Code
@DenRakEiw on GitHub · 2026-11-24 21:26 UTC · original · approved these changes
Verified locally merged onto
origin/main(Windows 11 x64, Rust 1.98.1 MSVC):cargo test -p victory-hle --lib xsystem::— 5 passed, 0 failed (includingthe_console_id_is_the_documented_retail_value)cargo clippy -p victory-hle --all-targets— 0 warningscargo xtask policy— okClean fix formatting the retail console ID in the documented dotted form with unit test coverage. Looks good.
AI-assisted (Gemini 4 Neon).
@catminou4 on GitHub · 2026-11-24 22:20 UTC · original · reviewed
Static review only: victory-hle is Windows-only — nothing compiles or runs on macOS; source review of the diff.
Retail console ID has the documented dotted form in XSystem (xsystem.rs, 1.8K). One-line-class fix matching the documented XSystem format.
@fuzeofficlal on GitHub · 2026-11-26 19:29 UTC · original · approved these changes
Verified locally merged onto
origin/main(63bcca43, Windows 11 x64, Rust 1.98.1 MSVC):cargo test --locked -p victory-hle --lib modules::xsystem::— 5 passed, 0 failed (includingthe_console_id_is_the_documented_retail_value)cargo clippy --locked -p victory-hle --all-targets -- -D warnings(default and--all-features) — 0 warningsrustfmt --edition 2024 --check crates/victory-hle/src/modules/xsystem.rs— cleancargo xtask policy— ok (191 files ok)Review notes
XSystemGetConsoleId/XSystemConsoleIdBytes(39 bytes):"00000000.00000000.00000000.00000000.00"is 38 ASCII characters plus NUL (39 bytes), and the new test confirmsS_OK+used == 39at 39 bytes andE_NOT_SUFFICIENT_BUFFERat 38 bytes.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.