Repository navigation
Conversation
The text-entry call ignored its input scope. The GDK Password scope (31) must hide what is typed; thread the flag through ask()/dialog::ask and add ES_PASSWORD to the edit box. Other scopes are unchanged. Regression test: gameui::tests::a_password_entry_asks_for_a_text_box_that_hides_what_is_typed. Ported from fxceless/victory-fork PR #1467 (head 28755e63e873a15bfe218b3a2aef5e8f1d30fcc5). Original author: CwWwWwW <66506837+CwWwWwW@users.noreply.github.com>.
Dukestar69
approved these changes
Nov 28, 2026
Dukestar69
left a comment
There was a problem hiding this comment.
Tested locally merged onto main (63b902f).
- Merge & Policy: Clean merge;
cargo xtask policypassed (294 files ok). - Tests:
cargo test -p victory-hle --lib xgameuipassed (4 passed; 0 failed, including the newa_password_entry_asks_for_a_text_box_that_hides_what_is_typedtest) with 0 compiler warnings.
Clean UI password-masking handling in xgameui. LGTM.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
MystifiedSky
added a commit
to MystifiedSky/VIctory-NVIDIA-Improved
that referenced
this pull request
Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ported to trustno1-coder/VIctory-NVIDIA from the same change submitted to fxceless/victory-fork as PR #1467 (head f75c359, author CwWwWwW). The fork's own line was dropped when it rebased onto 959dcaf (5dbf5ce), so this is submitted here directly. The description below is the original one; its 'Verification' numbers refer to the fork tree. Rebased onto main 63b902f.
The problem
The text-entry call ignored its input scope (
_scope,crates/victory-hle/src/modules/xgameui.rs:60). The GDK'sXGameUiTextEntryInputScope::Passwordis 31, and its documented behaviour is that the text box hides what the user types. The HLE opened an ordinaryES_AUTOHSCROLLedit box, so an in-game password prompt echoed the password in clear. The title still received the typed text, so the result path is unchanged.The current title does not call text entry; this is a latent privacy/compatibility defect for any title that asks for a password through this API.
Contract evidence (read-only research, no code taken)
XGameUiTextEntryInputScope:Password = 31; "A password, including alphanumeric characters and other symbols... This will be a fully localized keyboard where the textbox hides characters as the user types."XGameUiShowTextEntryAsync: with the Password scope the maximum length is always 1024 andmaxTextLengthis ignored. That limit rule is separate and already covered by open gpu: keep the page guard lock when no mapping query is needed (opt-in) #653/VIctory: unhandled exception 0x80000003 #331/perf(gpu): plan dependent GPU fills behind placed copies and keep placed-page write-watch stamps #295, so this PR does not touch limits.max_length_for()(value only; no code is taken from it).The change
text_entry_asyncnow readsscope, computespassword = scope == 31, and threads the flag throughask/dialog::ask; the dialog's edit box addsES_PASSWORDwhen the entry is a password. Every other scope is unchanged and produces exactly the previous dialog and result.Evidence
New test
gameui::tests::a_password_entry_asks_for_a_text_box_that_hides_what_is_typed: the module's test dialog marks a dialog that was asked to hide its text with a trailing*.abctypedinstead of 10 bytes /abctyped*;abctyped.Verification on this branch (base
9a9091d):cargo test -p victory-hle --lib --locked -- --test-threads=1鈥?104 passed, 0 failedcargo clippy -p victory-hle --all-targets --locked -- -D warnings鈥?cleancargo clippy -p victory-hle --all-targets --locked --all-features -- -D warnings鈥?cleangit diff --checkclean; the change adds no new fmt diff (the crate already has pre-existing fmt diffs on this toolchain).The masked rendering itself is a host dialog style and is not exercised by unit tests (this module's tests mock the dialog, as before); the scope-to-mask wiring is pinned by the test and the style addition is a two-line, review-visible change.
Scope and overlap
One file,
crates/victory-hle/src/modules/xgameui.rs(+87/-11). The Password 1024-character cap is covered by open #653/#331/#295 and is not duplicated; #653 does not implement hiding the text (its xgameui.rs has noES_PASSWORD). This change touches thetext_entry_async/asklines that #653 rewrites, so a rebase may be needed when either lands. CI'scheckmay be red from main's own clippy and asset-policy failures (#1440/#1322), which this diff does not touch.Verification on this tree (base 63b902f, 2026-11-27)