From a5a2ec4f7a855ad35bde6362796a0a07fd419cf7 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 27 Oct 2019 07:25:43 +0100 Subject: proto/wine: add support for proton --- proto-wine/ftnoir_protocol_wine.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'proto-wine/ftnoir_protocol_wine.h') 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 #include #include #include +struct settings : opts +{ + settings() : opts{"proto-wine"} {} + value variant_proton{b, "variant-proton", false }, + variant_wine{b, "variant-wine", true }; + value 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(); -- cgit v1.2.3