RoootTheFox / Linux-MegaHack-Installer

Helper script to install MegaHack v6/v7/v8 on Linux
GNU General Public License v3.0
39 stars 11 forks source link

Improve proton path finding logic #7

Closed JeremyMoeglich closed 11 months ago

JeremyMoeglich commented 11 months ago

Currently there are two issues with the proton finding logic:

  1. If you use a different proton version other than, Proton GE, Proton 7.0 or Proton Experimental, the script fails
  2. If you have multiple proton installed it may choose a version other than the one used by the game, This caused the installer to never start for me

This changes the logic to read the config within "${steam_path}/steamapps/compatdata/322170/config_info" and extract the proton path from that

RoootTheFox commented 11 months ago

Thanks for your PR! I actually planned on doing something like this for the improve_script branch, but I didn't know about the config_info trick so that was kind of just sitting on my back burner for a while.

JeremyMoeglich commented 11 months ago

The script now checks all lines for proton paths, it should also be impossible to have infinite loops now