diff options
Diffstat (limited to 'proto-wine/ftnoir_protocol_wine.h')
-rw-r--r-- | proto-wine/ftnoir_protocol_wine.h | 18 |
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(); |