diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-17 13:33:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-17 13:33:23 +0200 |
| commit | ccd213c4a1ee3016c4184a9ce86ee1bd7472406d (patch) | |
| tree | cdc870beec978ee53f125320bf51924b36bede34 /proto-wine/ftnoir_protocol_wine.cpp | |
| parent | 788d478be6c363d151a9693b3b1d4e4eaa11c021 (diff) | |
| parent | 9fcb6b524b7c9d6937f88a4b9928a905d886df1d (diff) | |
Merge pull request #1867 from kzvezdarov/fix-proton-9x-exec-path
Diffstat (limited to 'proto-wine/ftnoir_protocol_wine.cpp')
| -rw-r--r-- | proto-wine/ftnoir_protocol_wine.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/proto-wine/ftnoir_protocol_wine.cpp b/proto-wine/ftnoir_protocol_wine.cpp index c44cfc43..b70b3f16 100644 --- a/proto-wine/ftnoir_protocol_wine.cpp +++ b/proto-wine/ftnoir_protocol_wine.cpp @@ -87,11 +87,13 @@ module_status wine::initialize() if (s.proton_appid == 0) return error(tr("Must specify application id for Proton (Steam Play)")); - std::tuple<QProcessEnvironment, QString, bool> make_steam_environ(const QString& proton_path, int appid); - QString proton_path(const QString& proton_path); + std::tuple<QProcessEnvironment, QString, bool> make_steam_environ(const QString& proton_dist_path, int appid); + QString proton_path(const QString& proton_dist_path); - wine_path = proton_path(s.proton_path().toString()); - auto [proton_env, error_string, success] = make_steam_environ(s.proton_path().toString(), s.proton_appid); + QString proton_dist_path = s.proton_path().toString(); + + wine_path = proton_path(proton_dist_path); + auto [proton_env, error_string, success] = make_steam_environ(proton_dist_path, s.proton_appid); env = proton_env; if (!success) |
