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_fsuipc | |
parent | e70bef88fdb5ffdf1c2dcf99ac9e22181d18f5ac (diff) |
Implement game name in the UI, lost previously due to refactoring.
Diffstat (limited to 'ftnoir_protocol_fsuipc')
-rw-r--r-- | ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.cpp | 11 | ||||
-rw-r--r-- | ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.h | 9 |
2 files changed, 6 insertions, 14 deletions
diff --git a/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.cpp b/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.cpp index 0c25e77e..b3d7acaa 100644 --- a/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.cpp +++ b/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.cpp @@ -207,16 +207,7 @@ bool FTNoIR_Protocol::checkServerInstallationOK() return true;
}
-//
-// Return a name, if present the name from the Game, that is connected...
-//
-void FTNoIR_Protocol::getNameFromGame( char *dest )
-{
- sprintf_s(dest, 99, "FS2002/2004");
- return;
-}
-
-////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
// Factory function that creates instances if the Protocol object.
// Export both decorated and undecorated names.
diff --git a/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.h b/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.h index f23f45c2..d8f9e624 100644 --- a/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.h +++ b/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.h @@ -67,8 +67,9 @@ public: bool checkServerInstallationOK();
void sendHeadposeToGame( double *headpose, double *rawheadpose );
- void getNameFromGame( char *dest ); // Take care dest can handle up to 100 chars...
-
+ QString getGameName() {
+ return "Microsoft Flight Simulator X";
+ }
private:
// Private properties
QString ProgramName;
@@ -94,10 +95,10 @@ public: void Initialize(QWidget *parent);
void registerProtocol(IProtocol *protocol) {
theProtocol = (FTNoIR_Protocol *) protocol; // Accept the pointer to the Protocol
- };
+ }
void unRegisterProtocol() {
theProtocol = NULL; // Reset the pointer
- };
+ }
private:
Ui::UICFSUIPCControls ui;
|