Skip to content

make_game: resolve a relative WINE before entering the game folder - #2209

Closed
whoalin1 wants to merge 1 commit into
ProjectLeonida:mainfrom
whoalin1:wine-relative-launcher
Closed

whoalin1 wants to merge 1 commit into
ProjectLeonida:mainfrom
whoalin1:wine-relative-launcher

Conversation

@whoalin1

Copy link
Copy Markdown
Contributor

Summary

  • resolve a relative WINE path against the caller's directory before the generated launcher changes into the game folder
  • keep absolute paths and plain command names unchanged
  • extend the synthetic POSIX launcher regression with a Proton-style Proton 9.0/files/bin/wine path

Item: MAKE-GAME-WINE-RELATIVE-PATH

This carries forward the still-uncarried fix in old-pr/10028, originally written by SkippySteve, reapplied and verified on current main.

Tests

Under the local machine coordination lock, in WSL Ubuntu with Python 3.14.4:

  • control: the new regression fails on the unpatched launcher with exit 127
  • fixed: python3 -I tests/test_make_game_platform.py RuntimePackagingTest.test_wine_first_boot_uses_the_packaged_game_and_shader_paths — pass
  • python -m compileall -q make_game.py tests/test_make_game_platform.py — pass
  • git diff --check — pass

No game files or GPU.

AI-assisted with Devin.

@real-rusher

Copy link
Copy Markdown

Verified on main a73a57e (Ubuntu 24.04 x86-64, Python 3.13, no GPU, no Wine). Merges cleanly, also together with #2217 and #2208 (all three touch make_game.py); tests/test_make_game_platform.py still passes with all three merged. With this PR alone: 46 tests OK. The PR's test file against main's make_game.py: 1 error, so the new test fails on main and passes with the fix. compileall clean.

AI-assisted: yes (Claude Code)

@whoalin1

Copy link
Copy Markdown
Contributor Author

Consolidated into #2208 as cherry-pick c3790cb77 to reduce review noise. The relative-WINE fix and regression test are preserved there.

@whoalin1 whoalin1 closed this Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants