Skip to content

[Fix] Treat GPTK Wine like regular Wine #2880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2023
Merged

[Fix] Treat GPTK Wine like regular Wine #2880

merged 1 commit into from
Jul 23, 2023

Conversation

CommandMC
Copy link
Collaborator

When launching GPTK, Heroic simply uses the underlying wine64 binary. This binary is a (mostly) normal Wine binary, meaning it's meant to be launched with the WINEPREFIX environment variable set to the desired Wineprefix & a single argument (the executable to run). gameportingtoolkit on the other hand is the wrapper around Wine, not taking in a WINEPREFIX & instead requiring two arguments (the prefix, then the executable to run)
We were running wine64, but were passing it parameters intended for gameportingtoolkit. I'm not sure how this ever worked

While touching the responsible function (getWineFlags) I've also made it a little more type-safe & removed the unused gameSettings parameter

Note that I cannot test this myself, as I don't have a device running macOS, however there were plenty of people with this issue on our Discord & here (#2858)


Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

@CommandMC CommandMC added the pr:testing This PR is in testing, don't merge. label Jul 21, 2023
@CommandMC CommandMC self-assigned this Jul 21, 2023
@pakkographic
Copy link

It works with this build of Heroic, It launches the game instead of the wine explorer, good job!

@siim0n
Copy link

siim0n commented Jul 22, 2023

Hi, I can confirm this works on Sonoma, on a MBP M1 Pro, good job :)

When launching GPTK, Heroic simply uses the underlying `wine64` binary.
This binary is a (mostly) normal Wine binary, meaning it's meant to be
launched with the WINEPREFIX environment variable set to the desired
Wineprefix & a single argument (the executable to run). `gameportingtoolkit`
on the other hand is the wrapper around Wine, not taking in
a WINEPREFIX & instead requiring two arguments (the prefix, then the
executable to run)
We were running `wine64`, but were passing it parameters intended
for `gameportingtoolkit`. I'm not sure how this ever worked

While touching the responsible function (getWineFlags) I've also made
it a little more type-safe & removed the unused `gameSettings` parameter
@CommandMC CommandMC added pr:ready-for-review Feature-complete, ready for the grind! :P and removed pr:testing This PR is in testing, don't merge. labels Jul 23, 2023
@arielj
Copy link
Collaborator

arielj commented Jul 23, 2023

@flavioislima I think you are the best person to review this since you implemented it?

I do see comments saying it works so I'm fine with that too

@arielj arielj requested a review from flavioislima July 23, 2023 15:13
@arielj arielj added this to the 2.9 milestone Jul 23, 2023
Copy link
Member

@flavioislima flavioislima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should work.
The problem is that I have removed the support for the scripts but forgot to update part of the code after it. Thanks for fixing it.

@flavioislima flavioislima merged commit a731fac into main Jul 23, 2023
@flavioislima flavioislima deleted the fix/gptk branch July 23, 2023 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:ready-for-review Feature-complete, ready for the grind! :P
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants