Windows playability, shader translation, D3D12 stability, and HLE improvements #1330

Closed
github-bot wants to merge 50 commits from gh-pr/1330/head into gh-pr/1330/base
Owner

@⁠sahajiscoding on GitHub · 2026-11-24 17:29 UTC · original
sahajiscoding:main → main · +17734 −2165 · 76 files · 50 commits · closed without merging

Summary

A set of clean-room improvements across the shader compiler, D3D12 runtime, HLE platform modules, formats/loader, and Windows launcher experience, focused on Windows playability and stability. All changes strictly follow docs/asset-policy.md (zero copyrighted assets; Cargo.lock, .github/workflows/ci.yml, and .gitignore unchanged).

Note for maintainers: This branch combines several subsystem improvements (76 files). If you prefer reviewing smaller, targeted PRs by subsystem (shader compiler / D3D12 / HLE / Windows launcher), I'm happy to split them out.


1. Shader Translation & DXIL (victory-shader)

  • Additional RDNA2 VALU lowering: Added v_mul_hi_{u,i}32_{u,i}24, v_mad_{u,i}32_{u,i}16, v_lerp_u8, v_sad_u{8,16,32}, v_cvt_pk_{u,i}16_{u,i}32, and v_dot{2,4}_{i,u}32_{i,u}{16,8} (wrapping 32-bit path, plus INT64-flagged saturating clamp path), validated with dxil.dll.
  • Contiguous low-channel image_store dmasks: Supports 0x0, 0x1, 0x3, 0x7, 0xF (both 32-bit and d16), while still rejecting sparse masks.
  • 64-bit atomics, structured root buffers, and pixel helper-lane guards: Added SFI0 feature bit reporting (Int64Ops, AtomicInt64OnTypedResource, AtomicInt64OnHeapResource, ViewportAndRTArrayIndexFromAnyShaderFeedingRasterizer), helper-lane protection for pixel v_readfirstlane_b32, and additional VALU / f16 / wave-size handling.
  • Scalar/mask control flow (#878): Includes s_bcnt1_i32_b32/b64 lane-mask tracking and dead-edge undef handling in fill_phis. (Flagging for review: please note the open discussion on #878 regarding Wave32 uniform s_bcnt1 branches — happy to revert or adjust that hunk separately if preferred.)

2. D3D12 Runtime & GPU Host (victory-gpu)

  • High-performance discrete GPU selection (#208 / #1132): Uses IDXGIFactory6::EnumAdapterByGpuPreference(0, DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE) with optional VICTORY_ADAPTER=<index | name substring> override and startup GPU/VRAM logging so hybrid Windows laptops don't default to an iGPU.
  • Sampler heap 2,048 cap fallback (#100 / #86): Caps shader-visible sampler heaps at D3D12's architectural 2,048 limit instead of failing heap creation.
  • Shader cache write-failure fallback (#358): Returns the in-memory translated shader if persisting the entry to disk fails.
  • Pipeline, descriptor & resource hardening: Dynamic descriptor reclamation, integer render-target blend guards, depth bounds (OMSetDepthBounds), monotonic fence updates, clamped sampler descriptors, saturating COM refcounts, dirty-page texture detiling (Layout::extents), and wave-lane count reporting (wave_lane_count_max).
  • Fallback window polish: Added F11 / Alt+Enter borderless fullscreen toggling and clean WM_CLOSE handling.

3. HLE, Input, Audio & Platform (victory-hle, victory-formats, victory-loader, victory-pipeline, victory-game)

  • Input (gameinput.rs):
    • Windows.Gaming.Input 4-motor impulse trigger rumble with XInput fallback.
    • Enhanced keyboard+mouse fallback gamepad (preserves all documented bindings, adds Space=A, Left Ctrl=B, R=X, Left Shift=L3, mouse LMB=RT/RMB=LT/MMB=R3, and RMB / F9 mouse camera look).
    • Null-device previous_reading / next_reading now walks readings across all devices in chronological order (#361).
  • Windowing & display:
    • lifecycle.rs: F11 / Alt+Enter borderless fullscreen toggle on hooked title windows and >= 1 dimension clamp in fit_into() (#451).
    • display.rs: No-op deferral fallback when PowerSetRequest returns ERROR_NOT_SUPPORTED.
  • Async, files, networking & services:
    • xasync.rs: XTaskQueueRegisterWaiter / XTaskQueueUnregisterWaiter (#888) and immediate wake/cancel of delayed callbacks on XTaskQueueTerminate (#132).
    • files.rs: Clamps .. traversal at the virtual drive root on short paths as well (#182).
    • dstorage.rs: Added CancelRequestsWithTag and Query (#889).
    • speech.rs, xgame.rs, xgameui.rs, xsystem.rs, net.rs: XAccessibility slots (#865), QueryInterface on all xgame vtables (#901), password input style (#881), sandbox ID buffer check (#862), and zero-address connect/WSAConnect handling (#891).
  • Formats, cache & loader:
    • xma.rs: Cached IMDCT pre/post sin_cos tables across subframes (#172) and bit-reader width guards (#907).
    • cache.rs: Atomic Windows NTFS cache publication using hard_link + remove_file to prevent ERROR_ACCESS_DENIED races (#890).
    • sgd5.rs, crash.rs, tls.rs, stacks.rs: Checked arithmetic, slice-based clwb_len, and TLS/stack bounds guards (#905, #924, #938).

4. Windows Launcher & Packaging (apps/victory, victory-core, scripts/)

  • victory doctor & interactive launcher (#910): Double-clicking victory.exe opens an interactive PC readiness & title launcher menu with GPU/SM 6.6/Mesh Shader diagnostics, [S] game-folder setup wizard (victory.toml), [K] controls guide, Series X/S toggle, and Explorer drag-and-drop .exe launching.
  • Portable config lookup: Falls back to victory.toml next to victory.exe when not present in the working directory.
  • Release packaging script: Added scripts/build-windows.ps1 to build and assemble a portable Windows folder under target\victory-windows\.

Testing & Verification

  • Passed GitHub Actions Windows CI (windows-latest):
    • cargo clippy --workspace --all-targets --locked -- -D warnings
    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
    • cargo test --workspace --locked (all 11 crates, including WARP/DXIL validation tests, NTFS cache concurrency tests, new unit tests, and xtask asset-policy check)
  • Not yet tested on live game data: All verification was performed against the test suite and WARP/DXIL validator without a live Xbox title dump.
**@⁠sahajiscoding** on GitHub · 2026-11-24 17:29 UTC · [original](https://github.com/Marvisak/VIctory/pull/1330) `sahajiscoding:main` → `main` · +17734 −2165 · 76 files · 50 commits · closed without merging ## Summary A set of clean-room improvements across the shader compiler, D3D12 runtime, HLE platform modules, formats/loader, and Windows launcher experience, focused on Windows playability and stability. All changes strictly follow `docs/asset-policy.md` (zero copyrighted assets; `Cargo.lock`, `.github/workflows/ci.yml`, and `.gitignore` unchanged). > **Note for maintainers:** This branch combines several subsystem improvements (76 files). If you prefer reviewing smaller, targeted PRs by subsystem (shader compiler / D3D12 / HLE / Windows launcher), I'm happy to split them out. --- ### 1. Shader Translation & DXIL (`victory-shader`) - **Additional RDNA2 VALU lowering**: Added `v_mul_hi_{u,i}32_{u,i}24`, `v_mad_{u,i}32_{u,i}16`, `v_lerp_u8`, `v_sad_u{8,16,32}`, `v_cvt_pk_{u,i}16_{u,i}32`, and `v_dot{2,4}_{i,u}32_{i,u}{16,8}` (wrapping 32-bit path, plus `INT64`-flagged saturating `clamp` path), validated with `dxil.dll`. - **Contiguous low-channel `image_store` dmasks**: Supports `0x0`, `0x1`, `0x3`, `0x7`, `0xF` (both 32-bit and `d16`), while still rejecting sparse masks. - **64-bit atomics, structured root buffers, and pixel helper-lane guards**: Added `SFI0` feature bit reporting (`Int64Ops`, `AtomicInt64OnTypedResource`, `AtomicInt64OnHeapResource`, `ViewportAndRTArrayIndexFromAnyShaderFeedingRasterizer`), helper-lane protection for pixel `v_readfirstlane_b32`, and additional VALU / f16 / wave-size handling. - **Scalar/mask control flow (`#878`)**: Includes `s_bcnt1_i32_b32/b64` lane-mask tracking and dead-edge `undef` handling in `fill_phis`. *(Flagging for review: please note the open discussion on `#878` regarding Wave32 uniform `s_bcnt1` branches — happy to revert or adjust that hunk separately if preferred.)* ### 2. D3D12 Runtime & GPU Host (`victory-gpu`) - **High-performance discrete GPU selection (`#208` / `#1132`)**: Uses `IDXGIFactory6::EnumAdapterByGpuPreference(0, DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE)` with optional `VICTORY_ADAPTER=<index | name substring>` override and startup GPU/VRAM logging so hybrid Windows laptops don't default to an iGPU. - **Sampler heap 2,048 cap fallback (`#100` / `#86`)**: Caps shader-visible sampler heaps at D3D12's architectural 2,048 limit instead of failing heap creation. - **Shader cache write-failure fallback (`#358`)**: Returns the in-memory translated shader if persisting the entry to disk fails. - **Pipeline, descriptor & resource hardening**: Dynamic descriptor reclamation, integer render-target blend guards, depth bounds (`OMSetDepthBounds`), monotonic fence updates, clamped sampler descriptors, saturating COM refcounts, dirty-page texture detiling (`Layout::extents`), and wave-lane count reporting (`wave_lane_count_max`). - **Fallback window polish**: Added `F11` / `Alt+Enter` borderless fullscreen toggling and clean `WM_CLOSE` handling. ### 3. HLE, Input, Audio & Platform (`victory-hle`, `victory-formats`, `victory-loader`, `victory-pipeline`, `victory-game`) - **Input (`gameinput.rs`)**: - Windows.Gaming.Input 4-motor impulse trigger rumble with XInput fallback. - Enhanced keyboard+mouse fallback gamepad (preserves all documented bindings, adds `Space=A`, `Left Ctrl=B`, `R=X`, `Left Shift=L3`, mouse `LMB=RT`/`RMB=LT`/`MMB=R3`, and `RMB` / `F9` mouse camera look). - Null-device `previous_reading` / `next_reading` now walks readings across all devices in chronological order (`#361`). - **Windowing & display**: - `lifecycle.rs`: `F11` / `Alt+Enter` borderless fullscreen toggle on hooked title windows and `>= 1` dimension clamp in `fit_into()` (`#451`). - `display.rs`: No-op deferral fallback when `PowerSetRequest` returns `ERROR_NOT_SUPPORTED`. - **Async, files, networking & services**: - `xasync.rs`: `XTaskQueueRegisterWaiter` / `XTaskQueueUnregisterWaiter` (`#888`) and immediate wake/cancel of delayed callbacks on `XTaskQueueTerminate` (`#132`). - `files.rs`: Clamps `..` traversal at the virtual drive root on short paths as well (`#182`). - `dstorage.rs`: Added `CancelRequestsWithTag` and `Query` (`#889`). - `speech.rs`, `xgame.rs`, `xgameui.rs`, `xsystem.rs`, `net.rs`: `XAccessibility` slots (`#865`), `QueryInterface` on all `xgame` vtables (`#901`), password input style (`#881`), sandbox ID buffer check (`#862`), and zero-address `connect`/`WSAConnect` handling (`#891`). - **Formats, cache & loader**: - `xma.rs`: Cached IMDCT pre/post `sin_cos` tables across subframes (`#172`) and bit-reader width guards (`#907`). - `cache.rs`: Atomic Windows NTFS cache publication using `hard_link` + `remove_file` to prevent `ERROR_ACCESS_DENIED` races (`#890`). - `sgd5.rs`, `crash.rs`, `tls.rs`, `stacks.rs`: Checked arithmetic, slice-based `clwb_len`, and TLS/stack bounds guards (`#905`, `#924`, `#938`). ### 4. Windows Launcher & Packaging (`apps/victory`, `victory-core`, `scripts/`) - **`victory doctor` & interactive launcher (`#910`)**: Double-clicking `victory.exe` opens an interactive PC readiness & title launcher menu with GPU/SM 6.6/Mesh Shader diagnostics, `[S]` game-folder setup wizard (`victory.toml`), `[K]` controls guide, Series X/S toggle, and Explorer drag-and-drop `.exe` launching. - **Portable config lookup**: Falls back to `victory.toml` next to `victory.exe` when not present in the working directory. - **Release packaging script**: Added `scripts/build-windows.ps1` to build and assemble a portable Windows folder under `target\victory-windows\`. --- ## Testing & Verification - Passed GitHub Actions Windows CI (`windows-latest`): - `cargo clippy --workspace --all-targets --locked -- -D warnings` - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` - `cargo test --workspace --locked` (all 11 crates, including WARP/DXIL validation tests, NTFS cache concurrency tests, new unit tests, and `xtask` asset-policy check) - **Not yet tested on live game data:** All verification was performed against the test suite and WARP/DXIL validator without a live Xbox title dump.
Waves 1-4:
- Shader translator: merged Es/Ls/Gs/Hs stages, RootType::Constants 64-bit VA pairs (CONST_VIEW_SPACE=2), 64-bit image_atomic_*, Wave64-on-Wave32 LDS adaptation, transitive phi liveness, host-wave lane ops, NGG geometry mesh path, VSH3 shader cache
- GPU runtime: waitable-timer frame pacing, host ID3D12QueryHeap & timestamp frequency, IDXGIOutput6 HDR + SetColorSpace1 + Blitter PSO + clamped CopyTextureRegion fallback, physical_epoch-gated texture hashing, coalesced watch guards, Shadow::copy_back scratch, indirect execution & descriptor heap scaling
- Formats: GFX10.3 HTILE/DCC/CMASK/FMASK metadata planes and layout support
- HLE: SAPI 5 speech synthesis, Freeverb DSP reverb, WinRT WGI 4-motor rumble, DirectStorage zero-staging streaming & 16 MiB scratch, APU Opus tests, display HDR mode resolution

Wave 5:
- victory-shader: ordered OLT|OGT for v_cmp_lg (#706), denormal-as-zero legacy_mul (#682), 16-bit VALU omod & v_cvt_{u16,i16}_f16 modifiers/saturation (#668), v_interp_p1ll_f16 high-half preservation (#683), LOD-clamped image_sample_*_cl & image_gather4_l (#694), root-view structured buffer raw fallback (#709), conversion-free tbuffer_store_format_* (#707), cfg(windows) gate on constant_color (#685)
- victory-gpu & formats: upload CPU-written textures before CopyResource/CopyTextureRegion (#671), clear vertex-buffer slots on null views (#681), command-list 64-bit memory wait sync (#700), dynamic descriptor slot reclamation from executed lists (#688), private MICRO doc-link fix (#696), clippy::field_reassign_with_default fix (#692)
- victory-hle, loader, formats, apps: 0x-prefixed TitleId & self-closing XML handling (#715), xg null-out/bounds/checked-span validation (#674), Media Foundation local-file URL policy on MFCreateFile/MFBeginCreateFile/MFCreateSourceReaderFromURL/MFCreateSinkWriterFromURL (#663), checked PE patch offsets (#670), zero-alloc streaming bcpack Workspace (#703), in-repo capture/dump directory guards (#679/#664)

Co-authored-by: arena-agent <[email protected]>
Implement Waves 1-5: shader, GPU, formats, HLE, and loader improvements
Reconciles ~100 upstream commits (d2a4bae..ffe310e) with Waves 1-5:
- Preserves upstream waterfall loops over per-lane descriptors/offsets,
  packed buffer formats, v_cvt_norm_{i16,u16}_f16, SV_StencilRef,
  PSV0 sample frequency, s_ttracedata_imm, v_cmp_class_f16, s_bitcmp0/1,
  worklist bitcode liveness, BCPack bucket lookup, Wine staging fill,
  null texture UAV dimensions, capture UNORM16/fmt89, HLE/loader fixes,
  and Windows CI workflow.
- Keeps Waves 1-5 additions including spill-table user-data tracking,
  streaming zero-alloc BCPack lanes, dynamic descriptor slot reclamation
  paired with safe drop-on-exhaustion, UAV read/write hazard tracking,
  UserDataBinding root-CBV fallback, wave-size targeting, extended
  image_sample_*_cl/_o forms, and float source-modifier support on
  v_cvt_{u16,i16}_f16.

Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
- victory-gpu/pipeline: disable BlendEnable on active *_UINT/*_SINT render targets across graphics and mesh PSOs (#806), key host pipeline library on effective host state and deduplicate concurrent StorePipeline (#780)
- victory-gpu/host: scan regions with VirtualQuery in copy_mapped and write_mapped fallbacks (#783)
- victory-gpu/descriptor+draw: raise MIN_DYNAMIC to 1<<18 and trim fresh dynamic tables from first used entry (#747)
- victory-gpu/list+descriptor+host: implement ClearUnorderedAccessViewUint and ClearUnorderedAccessViewFloat for resource-backed textures (#771)
- victory-gpu/list+host: use tracked same-list GPU shadow buffers with 512-byte offset rebasing in placed buffer-to-texture CopyTextureRegion and GPU CopyBufferRegion (#785)
- victory-hle/host: allow oleaut32.dll pass-through for vccorlib140.dll ordinals (#811)
- victory-shader/valu_tests: add s_bfe_u32 coverage to bfe_signed_and_unsigned_match_rdna2 (#803)

Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Shader (victory-shader):
- #853: pair descriptor-size-only waterfall s_load_dword* with accessed load of the same (table, lane_offset) via Waterfall::sizes + unit & WARP tests
- #852: key Lower::handles on (props.0, props.1) so image atomics after image_get_resinfo get an integer handle + unit test
- #798: lower s_buffer_load* descriptor num_records reads to GetDimensions + unit test
- #823: support SDWA WORD_0 + UNUSED_SEXT in write_half and reject reserved dst_unused==3 + unit & WARP tests
- #830: preserve denormals and signaling NaNs in v_cmp_class_f32 via bitwise sign/abs + WARP test
- #832: lower v_cmp_f/tru_f32/f16 to i1 constants without IEEE float compare + WARP test

GPU (victory-gpu):
- #871: scan free runs straddling HostHeap::dynamic next cursor + unit test
- #840: mirror 256-byte-aligned in-range CBV tables in place, guard padded size against shadow.left(), and refresh/transition View::Constant in readable()
- #863: saturate indirect argument frame budget with InterlockedCompareExchange + WARP test
- #843: preserve NaN payloads and round normal ties to even in f32_to_half + unit test
- #782: fix place() initial alignment (1), null+nonzero sentinel, and checked u64 overflow + unit test
- #797: widen unsupported packed 16-bit (85/86/115) RTV/UAV textures to R8G8B8A8_UNORM and match SRV/UAV/RTV view formats + WARP test
- #796: harden OMSetRenderTargets (cap 8, null/zero/checked offset)
- #837: validate allocate_upload alignment power-of-two before clamping to 16 and reserve fallibly + unit test
- #848: implement ID3D12GraphicsCommandList::ClearState (slot 11) + WARP readback test
- #835: implement ID3D12GraphicsCommandList::DiscardResource (slot 55) with state/flag/region checks + WARP test
- #859: implement SetPredication (31), SetMarker (56), BeginEvent (57), EndEvent (58) + WARP readback test
- #211: implement multi-plane PresentX compositing (0x48-byte Plane, premultiplied-alpha overlay Blitter up to 8 planes)
- #817: include shader wave_size and host max_wave in compute PSO refusal diagnostics
- #792: create missing VICTORY_CAPTURE directory automatically

HLE & Core (victory-hle, victory-core):
- xmem: lazy persistent per-Section backing view with lock-free AtomicU64 committed-page bitmap to eliminate per-request MapViewOfFile/UnmapViewOfFile TLB shootdowns during DirectStorage streaming + concurrent test
- #845: ignore switched-off wireless receiver pads until non-rest input arrives so keyboard stand-in remains usable + unit test
- #874: report held keyboard keys in press order for IGameInputReading::GetKeyState + unit test
- #839: check CreateEventW null return and use bytewise unaligned writes in APU Opus output + unaligned test
- #870: accept only canonical v{n} version directories in xgamesave::current() + unit test
- #793: lexically normalize paths before ancestor walk and fold ./.. under Windows verbatim prefixes in policy.rs + unit test

Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
- Prefer high-performance discrete GPU via IDXGIFactory6::EnumAdapterByGpuPreference
  and VICTORY_ADAPTER (index or name substring) in victory-gpu and victory-shader (#208/#1132)
- Cap shader-visible sampler heaps at D3D12's 2,048 architectural limit instead of
  failing heap creation (#100/#86)
- Fall back to the in-memory translated shader if shader-cache disk write fails (#358)
- Add F11 / Alt+Enter borderless fullscreen toggle and clean WM_CLOSE handling to
  both title windows (lifecycle.rs) and VIctory's fallback window (host.rs); clamp
  fit_into() dimensions to >= 1 (#451)
- Enhance PC keyboard+mouse fallback gamepad with Space/LShift/R/LCtrl aliases,
  LMB/RMB/MMB triggers, and RMB/F9 mouse camera look; support null-device
  cross-device previous/next reading walk (#361)
- Fall back to a no-op display deferral when PowerSetRequest returns ERROR_NOT_SUPPORTED
- Clamp short virtual-drive '..' paths at the virtual drive root (#182)
- Wake and cancel sleeping delayed callbacks immediately on XTaskQueueTerminate (#132)
- Cache XMA IMDCT rotation sin/cos tables across subframes (#172)
- Lower additional RDNA2 VALU instructions (v_mul_hi_{u,i}32_{u,i}24, v_mad_{u,i}32_{u,i}16,
  v_lerp_u8, v_sad_u{8,16,32}, v_cvt_pk_{u,i}16_{u,i}32, v_dot{2,4}_{i,u}32_{i,u}{16,8})
  with DXIL validation and conditional INT64 feature flagging (#157)
- Add portable victory.toml lookup next to victory.exe, interactive [S] Setup wizard
  and [K] Controls guide in victory.exe, and scripts/build-windows.ps1 release packager

Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
VIctory Windows Playability Package (Waves 6–9 + Upstream Sync)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:27:49 +00:00
github-bot closed this pull request 2026-11-26 04:27:49 +00:00
Author
Owner

@⁠EduBertozzi on GitHub · 2026-11-24 17:30 UTC · original

A heads-up on part 4 (the launcher), from the author of #910's menu: #959 implements the same double-click menu and adds the same apps/victory/src/menu.rs and menu::wanted() hook in main.rs. So whichever of the two lands first, the other conflicts.

They overlap but aren't the same, so they could be combined instead of choosing one:

  • #959 runs the game in a child victory run, so a crash leaves the window up and shows how the run ended. It also:
    • remembers the last game;
    • wraps hints to the console width;
    • names the GPU and driver through DXGI;
    • copies the check as a plain report for GitHub, with the profile folder redacted;
    • has 9 unit tests. It has been tested natively on Windows 10, under Wine (#910), and by @⁠Zipettte on an RX 7700 XT.
  • This PR's launcher adds things #959 doesn't have: the [S] game-folder setup that writes victory.toml, the [K] controls guide, and the [M] Series X/S toggle. Those are good additions.

If you split the launcher out as you offered, I'd be glad to bring [S], [K] and [M] into #959, credited to you, or the other way round, whichever the maintainers prefer. That way the menu is reviewed once.

AI-assisted (Claude Code).

**@⁠EduBertozzi** on GitHub · 2026-11-24 17:30 UTC · [original](https://github.com/Marvisak/VIctory/pull/1330#issuecomment-7139306882) A heads-up on part 4 (the launcher), from the author of #910's menu: #959 implements the same double-click menu and adds the same `apps/victory/src/menu.rs` and `menu::wanted()` hook in `main.rs`. So whichever of the two lands first, the other conflicts. They overlap but aren't the same, so they could be combined instead of choosing one: - #959 runs the game in a child `victory run`, so a crash leaves the window up and shows how the run ended. It also: - remembers the last game; - wraps hints to the console width; - names the GPU and driver through DXGI; - copies the check as a plain report for GitHub, with the profile folder redacted; - has 9 unit tests. It has been tested natively on Windows 10, under Wine (#910), and by @⁠Zipettte on an RX 7700 XT. - This PR's launcher adds things #959 doesn't have: the `[S]` game-folder setup that writes `victory.toml`, the `[K]` controls guide, and the `[M]` Series X/S toggle. Those are good additions. If you split the launcher out as you offered, I'd be glad to bring `[S]`, `[K]` and `[M]` into #959, credited to you, or the other way round, whichever the maintainers prefer. That way the menu is reviewed once. AI-assisted (Claude Code).
Author
Owner

@⁠EduBertozzi on GitHub · 2026-11-24 18:14 UTC · original

@⁠sahajiscoding I brought your three launcher ideas into #959 (6614cc2), credited to this PR:

  • S sets the game folder. It edits only the game_dir line of victory.toml, so the file's comments stay. A dropped .exe stands for its folder, and a folder inside the repo is refused.
  • K shows the keyboard's stand-in pad as main maps it.
  • M switches Series X / S for runs.

So if the maintainers would rather review the launcher once, #959 now covers what part 4 of this PR adds. Your fullscreen and mouse-look keys aren't in it, since main doesn't have those features.

AI-assisted (Claude Code).

**@⁠EduBertozzi** on GitHub · 2026-11-24 18:14 UTC · [original](https://github.com/Marvisak/VIctory/pull/1330#issuecomment-7140365100) @⁠sahajiscoding I brought your three launcher ideas into #959 ([`6614cc2`](https://github.com/EduBertozzi/VIctory/commit/6614cc2)), credited to this PR: - **S** sets the game folder. It edits only the `game_dir` line of `victory.toml`, so the file's comments stay. A dropped `.exe` stands for its folder, and a folder inside the repo is refused. - **K** shows the keyboard's stand-in pad as `main` maps it. - **M** switches Series X / S for runs. So if the maintainers would rather review the launcher once, #959 now covers what part 4 of this PR adds. Your fullscreen and mouse-look keys aren't in it, since `main` doesn't have those features. AI-assisted (Claude Code).
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:37 UTC · original

Automated triage for the maintainers. Closing because it breaks a repository rule (see docs/asset-policy.md and the project rules): nothing taken from the console SDK or the game, no weakening of the asset policy, and the title stays offline.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 00:37 UTC · [original](https://github.com/Marvisak/VIctory/pull/1330#issuecomment-7148708383) Automated triage for the maintainers. Closing because it breaks a repository rule (see `docs/asset-policy.md` and the project rules): nothing taken from the console SDK or the game, no weakening of the asset policy, and the title stays offline. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1330
No description provided.