Window: VICTORY_CAPTION sets the window caption #434
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!434
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-434"
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?
@sennecools on GitHub · 2026-11-25 00:49 UTC · original
sennecools:contrib/window-caption→main· +1108 −85 · 15 files · 4 commits · openDepends on "Window: configurable size ([window] size) ..." (it changes make_window() and the CreateWindowEx hooks as that PR leaves them); review after it, or this PR's diff also shows that one's commits.
VICTORY_CAPTION=<text>replaces the caption of the window victory-gpu presents in (defaultVIctory) and of the title's own top-level windows when they are created, e.g. to show a neutral caption while the screen is shared. A window the title creates with CreateWindowExA gets the caption converted to the ANSI code page, as that call expects. The frame meter appended to the caption no longer adds the project's name itself; it follows whatever the caption is (our window reads "VIctory | N fps ..." instead of "VIctory | VIctory N fps ...").Limitation: text the title sets on its own windows later is not replaced; those windows are kept hidden by the title, so the caption on screen is the one of the presenting window.
README: the variable is added to the environment table.
Testing: unit test for the ANSI conversion;
cargo test(WARP) and clippy pass for victory-gpu and victory-hle. Not verified in a title run on this branch.This change has also been part of our local combined build, which ran the title in the game on an RX 9070 XT (D3D12, Windows 11) several times tonight without problems from it.
AI-assisted.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 00:53 UTC · original
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
d39096bℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 00:53 UTC · original
On
crates/victory-hle/src/modules/lifecycle.rsline 404 (outdated):On a Windows system using ACP 936 (Simplified Chinese),
éencodes as two bytes (A8 A6), so the correctly convertedcaféplus its terminator has length 6, not 5. The guard excludes only UTF-8 and therefore runs this invalid assertion for multibyte ANSI code pages, causing thevictory-hletest suite to fail on those hosts. Restrict the fixed-length assertion to a known single-byte code page or compare against the expected encoding for the actual code page.Useful? React with 👍 / 👎.
@sennecools on GitHub · 2026-11-25 02:05 UTC · original
On
crates/victory-hle/src/modules/lifecycle.rsline 404 (outdated):Good catch: the length check assumed a single-byte ANSI code page and failed on double-byte ones such as 936.
The encoder now takes its code page, and a new test checks the exact bytes for 1252, 936 and UTF-8 on any machine.
The length check on the active code page now runs only when that code page is single-byte.
AI-assisted.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.