make_game: gta6rt.sh resolves a relative WINE before changing to the game folder #296

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

@⁠Andretuta on GitHub · 2026-11-24 03:02 UTC · original
ubiquitarianism:old-pr/10028 → main · +14 −0 · 2 files · 1 commits · draft

Carried over from old PR 10028 by SkippySteve in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/10028, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
SkippySteve: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

gta6rt.sh's packaged modes (--dry-run, --init, --run) cd into the game package before exec "${WINE:-wine}". A relative WINE, such as WINE=UMU-Proton-11.0-2e-x86_64/files/bin/wine <out>/gta6rt.sh --run from compatibilitytools.d, was then looked up inside the game folder and failed with "not found".

The launcher now turns a WINE that contains a / but does not start with one into $PWD/$WINE before the cd. Absolute paths and bare names (looked up on PATH) are unchanged. Same class as #9548 for run_wine_tests.

Test: test_wine_first_boot_uses_the_packaged_game_and_shader_paths gets a relative WINE under a Proton 9.0/files/bin folder (a symlink to the test's Python) and checks the --dry-run argv and working directory.

  • Linux (Arch), Python 3: python3 -m unittest tests.test_make_game_platform 46/46 pass; without the make_game.py change the extended test fails.
  • No Wine, GPU or game files used.

Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117061725

AI-assisted (Claude Code).

**@⁠Andretuta** on GitHub · 2026-11-24 03:02 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/296) `ubiquitarianism:old-pr/10028` → `main` · +14 −0 · 2 files · 1 commits · draft > Carried over from **old PR 10028** by `SkippySteve` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/10028`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `SkippySteve`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): `gta6rt.sh`'s packaged modes (`--dry-run`, `--init`, `--run`) `cd` into the game package before `exec "${WINE:-wine}"`. A relative `WINE`, such as `WINE=UMU-Proton-11.0-2e-x86_64/files/bin/wine <out>/gta6rt.sh --run` from `compatibilitytools.d`, was then looked up inside the game folder and failed with "not found". The launcher now turns a `WINE` that contains a `/` but does not start with one into `$PWD/$WINE` before the `cd`. Absolute paths and bare names (looked up on `PATH`) are unchanged. Same class as `#9548` for `run_wine_tests`. Test: `test_wine_first_boot_uses_the_packaged_game_and_shader_paths` gets a relative `WINE` under a `Proton 9.0/files/bin` folder (a symlink to the test's Python) and checks the `--dry-run` argv and working directory. - Linux (Arch), Python 3: `python3 -m unittest tests.test_make_game_platform` 46/46 pass; without the `make_game.py` change the extended test fails. - No Wine, GPU or game files used. Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117061725 AI-assisted (Claude Code).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:52:21 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/296/head:github-bot/gh-296'
git switch 'github-bot/gh-296'

Merge

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