CLI: inspect names every DLL characteristics bit #1986
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1988"
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 wilu222 on 2026-11-25T02:26:04Z.
victory inspectnamed six of the optional header's DllCharacteristics bits and silently dropped the rest. The title executable of Series 1.0.2.1 carries0x8160, so its line read0x8160 (high-entropy-va, dynamic-base, nx): the number had the terminal-server-aware bit (0x8000), the names did not.This names the remaining documented bits (no-isolation, no-seh, no-bind, wdm-driver, terminal-server-aware) and shows any bit still without a name (the reserved ones) in hex instead of dropping it.
What is in it
crates/victory-pe/src/layout.rs: the five missingdll_flagsconstants, next to the existing ones.apps/victory/src/inspect.rs:dll_flagsnames them and appends unnamed bits as hex; two unit tests (no game data).Tested
main940d32f.main(left: " (high-entropy-va, dynamic-base, nx)") and pass with the change.cargo clippy --workspace --all-targets --locked -- -D warningsand the--all-featuresvariant: clean.cargo xtask policy --staged: 2 files ok.cargo test --workspace --locked --no-fail-fast: 625 passed, 78 failed, 10 ignored.mainon the same machine: 623 passed, 78 failed, 10 ignored, the same 78 tests. They are the GPU shader tests that need shader model 6.6, which Windows 10's inbox D3D12 does not expose (neither hardware nor WARP SM 6.6 device available/no SM 6.6 device; #84). 90 tests print a skip for the same reason.victory inspecton the title executable now printsdll flags 0x8160 (high-entropy-va, dynamic-base, nx, terminal-server-aware); its DLLs (0x0160,0x4160) print as before.Not tested
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T02:48:49Z.
Review: COMMENTED
Static review only: apps/CLI are Windows-only paths — nothing compiles or runs on macOS; source review of the diff.
CLI inspect names every DLL characteristics bit — completeness fix for the PE inspect output; small.
Imported from Marvisak/VIctory. Originally posted by DesertGamer on 2026-11-25T02:28:16Z.
VIctory V2: community PRs, merged and tested
Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.
Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).
⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.
Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2
Unofficial community fork of Marvisak/VIctory, GPL-3.0.
upstream-sync referenced this pull request2026-11-25 09:06:16 +00:00
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T08:26:05Z.
Automated triage for the maintainers.
Merge candidate.
This is a small fix to
victory inspect. Onmain,dll_flagsinapps/victory/src/inspect.rsnames only six DllCharacteristics bits and silently drops the rest. The PR adds the five missing documented PE bits tovictory-pe'slayout::dll_flagsand prints any remaining unnamed bits in hex. I checked the constants against the public PE format spec: 0x0200, 0x0400, 0x0800, 0x2000 and 0x8000 are all correct. I also worked through the two new tests' expected strings, including the leftover-bits fold and{:#06x}formatting, and they match. CI (check) passes.Generated by Claude Code
upstream-sync referenced this pull request2026-11-25 10:07:34 +00:00
Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-25T12:07:16Z.
Independent local validation (Windows, Rust 1.100.0/MSVC, head
b157c07, no game data):cargo test --locked -p victory --bins-> 12 tests passed, includingdll_flags_names_every_bit_the_title_setsanddll_flags_shows_bits_without_a_name, exit 0. Real Windows system DLL check (no game data):cargo run --locked -q -p victory -- inspect C:\Windows\System32\kernel32.dll --importsexited 0 and printeddll flags 0x4160 (high-entropy-va, dynamic-base, nx, cfg), file size 862016, blake3, PDB, sections and 1276 imports from 104 DLLs. The 44 stderr lines are pre-existingfetch_updatedeprecation warnings, not from this change. AI-assisted (Hy4 flash). GPU/driver: N/A (CPU/CLI). No game data, assets or extracted content used.