summaryrefslogtreecommitdiffhomepage
path: root/proto-wine/ftnoir_protocol_wine.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@tehran.lain.pl>2019-10-30 05:40:21 +0100
committerGitHub <noreply@github.com>2019-10-30 05:40:21 +0100
commitebf9de109b86336b8844fc6fd15a34760481de5e (patch)
tree2543e9a2e5f3ca5133141e11b2962c26fdaf3951 /proto-wine/ftnoir_protocol_wine.h
parent2716d8e2ae7df7fb99d9d64d1efaa554d1d38034 (diff)
parent29591277d9cae18895ef03cb858b2b327813830e (diff)
Merge pull request #996 from opentrack/pr/proton-wine-proto
add support for proton wine
Diffstat (limited to 'proto-wine/ftnoir_protocol_wine.h')
-rw-r--r--proto-wine/ftnoir_protocol_wine.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/proto-wine/ftnoir_protocol_wine.h b/proto-wine/ftnoir_protocol_wine.h
index ed142f83..8175be03 100644
--- a/proto-wine/ftnoir_protocol_wine.h
+++ b/proto-wine/ftnoir_protocol_wine.h
@@ -6,12 +6,28 @@
#include "ui_ftnoir_winecontrols.h"
+#include "options/options.hpp"
+using namespace options;
+
#include <QString>
#include <QProcess>
#include <QMutex>
#include <QDebug>
+struct settings : opts
+{
+ settings() : opts{"proto-wine"} {}
+ value<bool> variant_proton{b, "variant-proton", false },
+ variant_wine{b, "variant-wine", true },
+ fsync{b, "fsync", true},
+ esync{b, "esync", true};
+
+ value<int> proton_appid{b, "proton-appid", 0};
+ value<QString> proton_version{b, "proton-version", {} },
+ wineprefix{b, "wineprefix", "~/.wine"};
+};
+
class wine : TR, public IProtocol
{
Q_OBJECT
@@ -35,6 +51,7 @@ public:
private:
shm_wrapper lck_shm { WINE_SHM_NAME, WINE_MTX_NAME, sizeof(WineSHM) };
WineSHM* shm = nullptr;
+ settings s;
#ifndef OTR_WINE_NO_WRAPPER
QProcess wrapper;
@@ -55,6 +72,7 @@ public:
private:
Ui::UICFTControls ui;
+ settings s;
private slots:
void doOK();