summaryrefslogtreecommitdiffhomepage
path: root/proto-wine/proton.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-10-28 07:45:16 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-10-28 07:45:44 +0100
commit69c9a4136d2decc10f97ad49189070d8e4708110 (patch)
treeb4886667df3187e27d40f358217e0632da5bb9c7 /proto-wine/proton.cpp
parent2f07cc9958f31e405db7498989e90755234c7c47 (diff)
proto/wine: implement more proton knobs
Reported by: @jp7677 Issue: #996
Diffstat (limited to 'proto-wine/proton.cpp')
-rw-r--r--proto-wine/proton.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/proto-wine/proton.cpp b/proto-wine/proton.cpp
index 9cc4af30..15306d26 100644
--- a/proto-wine/proton.cpp
+++ b/proto-wine/proton.cpp
@@ -11,7 +11,7 @@
#include <QString>
#include <QProcessEnvironment>
-QProcessEnvironment make_steam_environ(const QString& proton_version)
+QProcessEnvironment make_steam_environ(const QString& proton_version, int appid)
{
auto ret = QProcessEnvironment::systemEnvironment();
QString home = qgetenv("HOME");
@@ -23,9 +23,9 @@ QProcessEnvironment make_steam_environ(const QString& proton_version)
};
QString path = expand(
- "HOME/.local/share/Steam/steamapps/common/Proton PROTON/dist/bin:"
- "HOME/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/bin:"
- "HOME/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/bin"
+ ":HOME/.local/share/Steam/steamapps/common/Proton PROTON/dist/bin"
+ ":HOME/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/bin"
+ ":HOME/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/bin"
);
path += ':'; path += qgetenv("PATH");
ret.insert("PATH", path);
@@ -46,9 +46,7 @@ QProcessEnvironment make_steam_environ(const QString& proton_version)
);
library_path += ':'; library_path += qgetenv("LD_LIBRARY_PATH");
ret.insert("LD_LIBRARY_PATH", library_path);
-
- ret.insert("WINEPREFIX", expand("HOME/.local/share/Steam/steamapps/compatdata/805550/pfx"));
- ret.insert("WINEESYNC", "1");
+ ret.insert("WINEPREFIX", expand("HOME/.local/share/Steam/steamapps/compatdata/%1/pfx").arg(appid));
return ret;
}