diff options
author | Russell Sim <russell.sim@gmail.com> | 2020-06-13 15:05:22 +0200 |
---|---|---|
committer | Russell Sim <russell.sim@gmail.com> | 2020-06-13 15:07:20 +0200 |
commit | f04ecec2acd165e6dd5692fed21d0667bbf3ac52 (patch) | |
tree | f10b26f406a4fc9fb82dbc93156d56032afc1488 /proto-wine/ftnoir_protocol_wine.cpp | |
parent | 442c01a60ed376c8693255a7649666113250bf37 (diff) |
Proton directory discovery
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.
Diffstat (limited to 'proto-wine/ftnoir_protocol_wine.cpp')
-rw-r--r-- | proto-wine/ftnoir_protocol_wine.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/proto-wine/ftnoir_protocol_wine.cpp b/proto-wine/ftnoir_protocol_wine.cpp index aabaa30c..63308e9f 100644 --- a/proto-wine/ftnoir_protocol_wine.cpp +++ b/proto-wine/ftnoir_protocol_wine.cpp @@ -70,11 +70,11 @@ module_status wine::initialize() if (s.proton_appid == 0) return error(tr("Must specify application id for Proton (Steam Play)")); - QProcessEnvironment make_steam_environ(const QString& proton_version, int appid); - QString proton_path(const QString& proton_version); + QProcessEnvironment make_steam_environ(const QString& proton_path, int appid); + QString proton_path(const QString& proton_path); - wine_path = proton_path(s.proton_version); - env = make_steam_environ(s.proton_version, s.proton_appid); + wine_path = proton_path(s.proton_path().toString()); + env = make_steam_environ(s.proton_path().toString(), s.proton_appid); } else { |