summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_wine/ftnoir_protocol_wine.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-27 12:48:22 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-27 12:48:22 +0200
commit1edb87b13a58cbb87cbf99ee30cc5ee7eb15003a (patch)
tree2a50a92f0b206fc5eee43830606cded1c6eed68f /ftnoir_protocol_wine/ftnoir_protocol_wine.h
parente70bef88fdb5ffdf1c2dcf99ac9e22181d18f5ac (diff)
Implement game name in the UI, lost previously due to refactoring.
Diffstat (limited to 'ftnoir_protocol_wine/ftnoir_protocol_wine.h')
-rw-r--r--ftnoir_protocol_wine/ftnoir_protocol_wine.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ftnoir_protocol_wine/ftnoir_protocol_wine.h b/ftnoir_protocol_wine/ftnoir_protocol_wine.h
index 8b3ea739..d9c37e27 100644
--- a/ftnoir_protocol_wine/ftnoir_protocol_wine.h
+++ b/ftnoir_protocol_wine/ftnoir_protocol_wine.h
@@ -37,6 +37,7 @@
#include <QLibrary>
#include <QProcess>
#include <QDebug>
+#include <QMutexLocker>
#include <QFile>
#include "facetracknoir/global-settings.h"
#include "compat/compat.h"
@@ -59,6 +60,12 @@ private:
WineSHM* shm;
QProcess wrapper;
int gameid;
+ QString game_name;
+ QMutex game_name_mutex;
+ QString getGameName() {
+ QMutexLocker(&game_name_mutex);
+ return game_name;
+ }
};
// Widget that has controls for FTNoIR protocol client-settings.