diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-27 12:48:22 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-27 12:48:22 +0200 |
commit | 1edb87b13a58cbb87cbf99ee30cc5ee7eb15003a (patch) | |
tree | 2a50a92f0b206fc5eee43830606cded1c6eed68f /ftnoir_protocol_ft/ftnoir_protocol_ft.cpp | |
parent | e70bef88fdb5ffdf1c2dcf99ac9e22181d18f5ac (diff) |
Implement game name in the UI, lost previously due to refactoring.
Diffstat (limited to 'ftnoir_protocol_ft/ftnoir_protocol_ft.cpp')
-rw-r--r-- | ftnoir_protocol_ft/ftnoir_protocol_ft.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp index a3deba7a..9c3c8461 100644 --- a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp +++ b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp @@ -211,6 +211,8 @@ float headRotZ; start_dummy();
pMemData->GameID2 = pMemData->GameID;
intGameID = pMemData->GameID;
+ QMutexLocker((QMutex*)&this->game_name_mutex);
+ connected_game = gamename;
}
ReleaseMutex(hFTMutex);
@@ -395,17 +397,6 @@ void FTNoIR_Protocol::FTDestroyMapping() }
-//
-// Return a name, if present the name from the Game, that is connected...
-//
-void FTNoIR_Protocol::getNameFromGame( char *dest )
-{
- QByteArray foo = game_name.toUtf8();
- memcpy(dest, foo.constData(), std::min<int>(foo.size(), 98));
- dest[foo.size()] = 0;
-}
-
-
////////////////////////////////////////////////////////////////////////////////
// Factory function that creates instances if the Protocol object.
|