summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ftnoir_protocol_wine/ftnoir_protocol_wine.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/ftnoir_protocol_wine/ftnoir_protocol_wine.h b/ftnoir_protocol_wine/ftnoir_protocol_wine.h
index c4837992..300501ad 100644
--- a/ftnoir_protocol_wine/ftnoir_protocol_wine.h
+++ b/ftnoir_protocol_wine/ftnoir_protocol_wine.h
@@ -52,7 +52,10 @@ public:
bool checkServerInstallationOK();
void sendHeadposeToGame(double* headpose, double* rawheadpose );
-
+ QString getGameName() {
+ QMutexLocker foo(&game_name_mutex);
+ return connected_game;
+ }
private:
PortableLockedShm lck_shm;
WineSHM* shm;
@@ -60,10 +63,6 @@ private:
int gameid;
QString connected_game;
QMutex game_name_mutex;
- QString getGameName() {
- QMutexLocker((QMutex*)&game_name_mutex);
- return connected_game;
- }
};
// Widget that has controls for FTNoIR protocol client-settings.