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.h | |
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.h')
-rw-r--r-- | proto-wine/ftnoir_protocol_wine.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/proto-wine/ftnoir_protocol_wine.h b/proto-wine/ftnoir_protocol_wine.h index 0e48e5b5..fc537b60 100644 --- a/proto-wine/ftnoir_protocol_wine.h +++ b/proto-wine/ftnoir_protocol_wine.h @@ -12,6 +12,7 @@ using namespace options; #include <QString> #include <QProcess> #include <QMutex> +#include <QtCore/QVariant> #include <QDebug> @@ -24,8 +25,8 @@ struct settings : opts esync{b, "esync", true}; value<int> proton_appid{b, "proton-appid", 0}; - value<QString> proton_version{b, "proton-version", {} }, - wineprefix{b, "wineprefix", "~/.wine"}; + value<QVariant> proton_path{b, "proton-version", {} }; + value<QString> wineprefix{b, "wineprefix", "~/.wine"}; value<int> protocol{b, "protocol", 2}; }; |