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

Open
opened 2026-11-26 20:17:35 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/296
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/10028


📝 Commits (1)

  • bc83450 make_game: gta6rt.sh resolves a relative WINE before changing to the game folder

📊 Changes

2 files changed (+14 additions, -0 deletions)

View changed files

📝 make_game.py (+5 -0)
📝 tests/test_make_game_platform.py (+9 -0)

📄 Description

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).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/296 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/10028` --- ### 📝 Commits (1) - [`bc83450`](https://github.com/ubiquitarianism/leonida/commit/bc83450ac4140964259ad3b9a3bf2f6d2124a5c6) make_game: gta6rt.sh resolves a relative WINE before changing to the game folder ### 📊 Changes **2 files changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `make_game.py` (+5 -0) 📝 `tests/test_make_game_platform.py` (+9 -0) </details> ### 📄 Description > 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#348
No description provided.