summaryrefslogtreecommitdiffhomepage
path: root/proto-wine/ftnoir_protocol_wine.h
diff options
context:
space:
mode:
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();