summaryrefslogtreecommitdiffhomepage
path: root/proto-wine/ftnoir_protocol_wine.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2020-02-03 22:25:04 +0100
committerStanislaw Halik <sthalik@misaki.pl>2020-02-03 22:25:04 +0100
commit50b9638d6766551d0b4a867983c0b7b664e830a5 (patch)
tree70d369723577d2b207925b277dda5171d276bbb9 /proto-wine/ftnoir_protocol_wine.cpp
parent25dd60c84f686e9e2239f70e67fd8dcd82c1b268 (diff)
proto/wine: allow disabling freetrack/npclient
Fixes #1042
Diffstat (limited to 'proto-wine/ftnoir_protocol_wine.cpp')
-rw-r--r--proto-wine/ftnoir_protocol_wine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/proto-wine/ftnoir_protocol_wine.cpp b/proto-wine/ftnoir_protocol_wine.cpp
index 5d46f18a..5955b507 100644
--- a/proto-wine/ftnoir_protocol_wine.cpp
+++ b/proto-wine/ftnoir_protocol_wine.cpp
@@ -19,6 +19,8 @@ wine::~wine()
if (shm) {
shm->stop = true;
exit = wrapper.waitForFinished(100);
+ if (exit)
+ qDebug() << "proto/wine: wrapper exit code" << wrapper.exitCode();
}
if (!exit)
{
@@ -92,6 +94,8 @@ module_status wine::initialize()
if (s.fsync)
env.insert("WINEFSYNC", "1");
+ env.insert("OTR_WINE_PROTO", QString::number(s.protocol+1));
+
wrapper.setProcessEnvironment(env);
wrapper.setWorkingDirectory(OPENTRACK_BASE_PATH);
wrapper.start(wine_path, { library_path + "opentrack-wrapper-wine.exe.so" });