runtime: validate config, XMem alignment and device inputs #14

Open
github-bot wants to merge 1 commit from github-bot/gh-14 into main AGit
Owner

@⁠davutsimsekk on GitHub · 2026-11-25 19:04 UTC · original
davutsimsekk:fix/config-xmem-device → main · +77 −6 · 4 files · 1 commits · open

Fixes four runtime inputs that did not follow their documented behavior.

  • An empty VICTORY_CONFIG is treated as unset, like the other path variables.
  • XMemAllocDefault honors the console 2 MiB alignment for 32-bit allocations (alignment exponent 21).
  • ID3D12Device8 uses the released SDK IID 9218e6bb-f944-4f7e-a75c-b1b2c7b701f3.
  • CreateQueryHeap rejects Count == 0 with E_INVALIDARG instead of creating an unusable heap.

Tested

  • cargo test -p victory-core -p victory-gpu -p victory-hle --lib --locked: all passed.
  • Windows 11, Rust 1.98.1, locked offline build.

Not tested

  • No in-game run; no game files or console dump was used.

AI use

  • Automated coding agent for analysis, patch preparation and test runs.
**@⁠davutsimsekk** on GitHub · 2026-11-25 19:04 UTC · [original](https://github.com/rpatty-dev/PercyScarlett/pull/14) `davutsimsekk:fix/config-xmem-device` → `main` · +77 −6 · 4 files · 1 commits · open Fixes four runtime inputs that did not follow their documented behavior. - An empty `VICTORY_CONFIG` is treated as unset, like the other path variables. - `XMemAllocDefault` honors the console 2 MiB alignment for 32-bit allocations (alignment exponent 21). - `ID3D12Device8` uses the released SDK IID `9218e6bb-f944-4f7e-a75c-b1b2c7b701f3`. - `CreateQueryHeap` rejects `Count == 0` with `E_INVALIDARG` instead of creating an unusable heap. **Tested** - `cargo test -p victory-core -p victory-gpu -p victory-hle --lib --locked`: all passed. - Windows 11, Rust 1.98.1, locked offline build. **Not tested** - No in-game run; no game files or console dump was used. **AI use** - Automated coding agent for analysis, patch preparation and test runs.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:22:08 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/14/head:github-bot/gh-14'
git switch 'github-bot/gh-14'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-14'
git switch 'github-bot/gh-14'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-14'
git switch 'github-bot/gh-14'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-14'
git switch 'main'
git merge --squash 'github-bot/gh-14'
git switch 'main'
git merge --ff-only 'github-bot/gh-14'
git switch 'main'
git merge 'github-bot/gh-14'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.