Keep the local launcher offline and policy compliant #2259

Open
github-bot wants to merge 3 commits from github-bot/gh-2259 into main AGit
Owner

@⁠namitahlawat on GitHub · 2026-11-25 09:10 UTC · original
namitahlawat:codex/offline-local-launcher → main · +5262 −1277 · 86 files · 3 commits · open

No description provided.

**@⁠namitahlawat** on GitHub · 2026-11-25 09:10 UTC · [original](https://github.com/Marvisak/VIctory/pull/2259) `namitahlawat:codex/offline-local-launcher` → `main` · +5262 −1277 · 86 files · 3 commits · open *No description provided.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:00:07 +00:00
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-25 09:22 UTC · original

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.
**@⁠kotekompotek** on GitHub · 2026-11-25 09:22 UTC · [original](https://github.com/Marvisak/VIctory/pull/2259#issuecomment-7158238593) 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.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:44 UTC · original · edited 2026-11-25 14:50 UTC

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

**@⁠Marvisak** on GitHub · 2026-11-25 12:44 UTC · [original](https://github.com/Marvisak/VIctory/pull/2259#issuecomment-7162781814) · edited 2026-11-25 14:50 UTC <!-- 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 has changes conflicting with the target branch.
  • crates/victory-formats/src/xma/tables.rs
  • crates/victory-gpu/src/capture.rs
  • crates/victory-gpu/src/descriptor.rs
  • crates/victory-gpu/src/descriptor/host.rs
  • crates/victory-gpu/src/draw.rs
  • crates/victory-gpu/src/host.rs
  • crates/victory-gpu/src/memory.rs
  • crates/victory-gpu/src/pipeline/host.rs
  • crates/victory-gpu/src/pipeline/library.rs
  • crates/victory-gpu/src/primitive.rs
  • crates/victory-gpu/src/resource.rs
  • crates/victory-gpu/src/shadow.rs
  • crates/victory-gpu/src/texture.rs
  • crates/victory-gpu/src/twin.rs
  • crates/victory-gpu/src/watch.rs
  • crates/victory-hle/src/modules/xmem.rs
  • crates/victory-loader/src/crash.rs
  • crates/victory-shader/src/emit/lower.rs
  • crates/victory-shader/src/emit/shader.rs
  • crates/victory-shader/src/emit/stride_tests.rs
  • crates/victory-shader/src/ir.rs
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.
git fetch -u origin '+refs/pull/2259/head:github-bot/gh-2259'
git switch 'github-bot/gh-2259'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2259'
git switch 'github-bot/gh-2259'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2259'
git switch 'github-bot/gh-2259'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2259'
git switch 'main'
git merge --squash 'github-bot/gh-2259'
git switch 'main'
git merge --ff-only 'github-bot/gh-2259'
git switch 'main'
git merge 'github-bot/gh-2259'
git push origin 'main'
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!2259
No description provided.