diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-07-18 15:14:37 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-07-18 15:14:37 +0200 |
commit | 660701ba3bbd9a79794f6e5a1ab55d1a7bddbec6 (patch) | |
tree | f70c837a5962996cb6117513f8e4e44e86490f72 | |
parent | caf7361b7c41963643948cb03d19ad91b27ff0ae (diff) |
Unbreak Wine protocol
-rw-r--r-- | ftnoir_protocol_wine/ftnoir_protocol_wine.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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(); |