From 660701ba3bbd9a79794f6e5a1ab55d1a7bddbec6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 18 Jul 2013 15:14:37 +0200 Subject: Unbreak Wine protocol --- ftnoir_protocol_wine/ftnoir_protocol_wine.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'ftnoir_protocol_wine/ftnoir_protocol_wine.cpp') diff --git a/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp b/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp index 60c09d98..f58613d0 100644 --- a/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp +++ b/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp @@ -75,14 +75,11 @@ void FTNoIR_Protocol::sendHeadposeToGame( double *headpose, double *rawheadpose shm->data[i] = headpose[i] * 10; if (shm->gameid != gameid) { - QString id_str = QString::number(gameid); - QString gamename; + QMutexLocker foo(&game_name_mutex); /* only EZCA for FSX requires dummy process, and FSX doesn't work on Linux */ /* memory-hacks DLL can't be loaded into a Linux process, either */ - bool tmp1, tmp2; - CSV::getGameData(id_str, tmp1, tmp2, shm->table, gamename); + CSV::getGameData(gameid, shm->table, gamename); gameid = shm->gameid2 = shm->gameid; - QMutexLocker((QMutex*)&game_name_mutex); connected_game = gamename; } lck_shm.unlock(); -- cgit v1.2.3