HLE: the retail console ID has the documented dotted form #1716
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Marvisak/VIctory. Originally posted by davutsimsekk on 2026-11-24T21:14:05Z.
XSystemGetConsoleIdreported00000000000000000000000000000000000001, 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: cleanImported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T21:26:30Z.
Review: APPROVED
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).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T22:20:06Z.
Review: COMMENTED
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.
Imported from Marvisak/VIctory. Originally posted by kais7654 on 2026-11-24T22:38:10Z.
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.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:35:38Z.
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
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T19:29:51Z.
Review: APPROVED
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.