Keep the local launcher offline and policy compliant #2257

Open
namitahlawat wants to merge 3 commits from upstream-pr/2259 into main
namitahlawat commented 2026-11-25 09:10:09 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by namitahlawat on 2026-11-25T09:10:09Z.


No description provided.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6601023543 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2259). Originally posted by [namitahlawat](https://github.com/namitahlawat) on 2026-11-25T09:10:09Z. --- _No description provided._
DenRakEiw commented 2026-11-25 10:07:11 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T09:23:34Z.

Review: APPROVED


Verified locally merged onto origin/main (940d32f, Windows 11 x64, Rust 1.98.1 MSVC):

  • cargo test -p victory — 12 passed, 0 failed
  • cargo clippy -p victory --all-targets — 0 warnings
  • cargo xtask policy — ok (184 files ok)

Clean offline, policy-compliant local launcher GUI. Looks good.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6054872702 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2259#pullrequestreview-6054872702). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-25T09:23:34Z. **Review:** APPROVED --- Verified locally merged onto `origin/main` (`940d32f`, Windows 11 x64, Rust 1.98.1 MSVC): - `cargo test -p victory` — 12 passed, 0 failed - `cargo clippy -p victory --all-targets` — 0 warnings - `cargo xtask policy` — ok (`184 files ok`) Clean offline, policy-compliant local launcher GUI. Looks good. AI-assisted (Gemini 4 Neon).
catminou4 commented 2026-11-25 10:07:11 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T09:35:32Z.

Review: COMMENTED


Local launcher victory gui (Rust file picker, offline run --execute path) + README/policy compliance. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. apps/victory is Windows-only; the offline/no-downloads claim should be verified on Windows.

<!-- greyfinch-sync:Marvisak/VIctory:review:6055072801 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2259#pullrequestreview-6055072801). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T09:35:32Z. **Review:** COMMENTED --- Local launcher `victory gui` (Rust file picker, offline run --execute path) + README/policy compliance. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. apps/victory is Windows-only; the offline/no-downloads claim should be verified on Windows.
kotekompotek commented 2026-11-25 10:07:41 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T09:22:16Z.


Clean approach: one GetOpenFileNameW picker, no new third-party UI dep, reuses victory_core::ensure_outside_repo so a picked binary inside the repo is refused by the same policy the CLI applies. Also covers part of the double-click UX ask in #910.

Two nits, neither blocking:

  • hwndOwner stays null, so the dialog opens unparented; GetConsoleWindow() would anchor it to the console that spawned it.
  • GetOpenFileNameW returning 0 conflates cancel with an actual dialog error (CommDlgExtendedError) — for a picker, treating both as "nothing chosen" is acceptable, but a CDERR_* check would distinguish a real failure.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7158238593 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2259#issuecomment-7158238593). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-25T09:22:16Z. --- Clean approach: one `GetOpenFileNameW` picker, no new third-party UI dep, reuses `victory_core::ensure_outside_repo` so a picked binary inside the repo is refused by the same policy the CLI applies. Also covers part of the double-click UX ask in #910. Two nits, neither blocking: - `hwndOwner` stays null, so the dialog opens unparented; `GetConsoleWindow()` would anchor it to the console that spawned it. - `GetOpenFileNameW` returning 0 conflates cancel with an actual dialog error (`CommDlgExtendedError`) — for a picker, treating both as "nothing chosen" is acceptable, but a `CDERR_*` check would distinguish a real failure.
Marvisak commented 2026-11-25 13:02:54 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T12:44:07Z.


Automated triage for the maintainers.

Proposed close: out of scope (a launcher), now with a repo-wide sweep. The new head replaces the victory gui file picker with an interactive console menu (apps/victory/src/menu.rs, about 1,150 lines). The menu chooses a console profile, runs a title or translates shaders when victory.exe is double-clicked. A launcher front end is still outside what the repository takes. The CLI already does this with victory translate and victory run <exe> --execute.

The branch now also changes 86 files, about +5,300/-1,300 lines, with no relation to the menu:

  • reformatting across most crates (for example crates/victory-formats/src/xma/tables.rs);
  • edits to victory-gpu, victory-hle, victory-shader and victory-loader;
  • new windows/windows-sys dependencies in apps/victory/Cargo.toml and Cargo.lock;
  • a README and crate description that no longer name the title.

None of this can be reviewed as one change. If any part of it is a fix, please send it as its own focused PR against main.

This PR will be closed in 48 hours unless you push a change or a maintainer removes the triage: proposed close label (for example, if the maintainer wants a double-click entry for #910).


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7162781814 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2259#issuecomment-7162781814). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T12:44:07Z. --- <!-- victory-triage v1 head=bdf9537dd6aa07a34a9245f80ae866691a636d3f verdict=proposed-close at=2026-11-25T14:50:03Z --> Automated triage for the maintainers. **Proposed close: out of scope (a launcher), now with a repo-wide sweep.** The new head replaces the `victory gui` file picker with an interactive console menu (`apps/victory/src/menu.rs`, about 1,150 lines). The menu chooses a console profile, runs a title or translates shaders when `victory.exe` is double-clicked. A launcher front end is still outside what the repository takes. The CLI already does this with `victory translate` and `victory run <exe> --execute`. The branch now also changes 86 files, about +5,300/-1,300 lines, with no relation to the menu: - reformatting across most crates (for example `crates/victory-formats/src/xma/tables.rs`); - edits to `victory-gpu`, `victory-hle`, `victory-shader` and `victory-loader`; - new `windows`/`windows-sys` dependencies in `apps/victory/Cargo.toml` and `Cargo.lock`; - a README and crate description that no longer name the title. None of this can be reviewed as one change. If any part of it is a fix, please send it as its own focused PR against `main`. This PR will be closed in 48 hours unless you push a change or a maintainer removes the `triage: proposed close` label (for example, if the maintainer wants a double-click entry for #910). --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2259:upstream-pr/2259'
git switch 'upstream-pr/2259'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2259'
git switch 'upstream-pr/2259'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2259'
git switch 'upstream-pr/2259'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2259'
git switch 'main'
git merge --squash 'upstream-pr/2259'
git switch 'main'
git merge --ff-only 'upstream-pr/2259'
git switch 'main'
git merge 'upstream-pr/2259'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!2257
No description provided.