summaryrefslogtreecommitdiffhomepage
path: root/proto-wine/proton.cpp
AgeCommit message (Collapse)Author
2024-06-08Fixed copy-pasta leftoversKiril Zvezdarov
2024-06-08Refactored proton_path to be the dist dir locationKiril Zvezdarov
From Proton 9.0 and up, the directory containing library files and wine executables - previously called `dist`, appears to have been renamed to `files`. This breaks OpenTrack with newer Proton versions, because the path to the `wine` executable and proton library files is constructed as `:PROTON_PATH/dist/bin/wine`, i.e. the dist dir name is hardcoded. To fix this while preserving backward compatibility, this commit changes `proton_path` to point to the `dist` dir directly, be it `files` for 9.0+ or `dist` for older versions. Templated variables are adjusted accordingly to omit the dist dir. Obtaining the dist. dir path for a specific Proton version is done by recursively iterating the version's directory, looking for the `wine` executable. The first match is used to discover the grandparent dir path, which is the desired `:PROTON_PATH/:DIST_DIR` path.
2020-06-17Replace exception handling with error return valueRussell Sim
2020-06-14Implement error handlingRussell Sim
2020-06-14Remove unnecessary variable assignmentRussell Sim
2020-06-13Proton directory discoveryRussell Sim
Use search paths to find proton wine and the app directory, so that we can support steam installations in multiple locations and 3rd party proton installations.
2019-10-28proto/wine: implement more proton knobsStanislaw Halik
Reported by: @jp7677 Issue: #996
2019-10-28proto/wine: assume HOME exists in environStanislaw Halik
2019-10-28proto/wine: add support for protonStanislaw Halik