summaryrefslogtreecommitdiffhomepage
path: root/proto-wine/ftnoir_protocol_wine.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-10-27 07:25:43 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-10-28 07:45:44 +0100
commita5a2ec4f7a855ad35bde6362796a0a07fd419cf7 (patch)
tree60053965f601a5e14ba0f5eecc8e6f2c81ea26cc /proto-wine/ftnoir_protocol_wine.h
parent2716d8e2ae7df7fb99d9d64d1efaa554d1d38034 (diff)
proto/wine: add support for proton
Diffstat (limited to 'proto-wine/ftnoir_protocol_wine.h')
-rw-r--r--proto-wine/ftnoir_protocol_wine.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/proto-wine/ftnoir_protocol_wine.h b/proto-wine/ftnoir_protocol_wine.h
index ed142f83..3c64df68 100644
--- a/proto-wine/ftnoir_protocol_wine.h
+++ b/proto-wine/ftnoir_protocol_wine.h
@@ -6,12 +6,23 @@
#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 };
+ value<QString> proton_version{b, "proton-version", {} };
+};
+
class wine : TR, public IProtocol
{
Q_OBJECT
@@ -35,6 +46,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 +67,7 @@ public:
private:
Ui::UICFTControls ui;
+ settings s;
private slots:
void doOK();