mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 10:25:36 +08:00
refs #908, detect and check version of P3D or FSX in listener
* added version simulator name etc. to listener * checking simulator * simplified CSimulatorFsxCommonListener::SimConnectProc
This commit is contained in:
committed by
Mathew Sutcliffe
parent
4a984ea1de
commit
c277b26c05
@@ -298,12 +298,22 @@ namespace BlackSimPlugin
|
||||
//! \copydoc BlackCore::ISimulatorListener::stop
|
||||
virtual void stop() override;
|
||||
|
||||
protected slots:
|
||||
protected:
|
||||
//! Test if connection can be established
|
||||
void ps_checkConnection();
|
||||
void checkConnection();
|
||||
|
||||
//! Check simulator version and type
|
||||
bool checkVersionAndSimulator() const;
|
||||
|
||||
private:
|
||||
QTimer *m_timer { nullptr };
|
||||
QString m_simulatorVersion;
|
||||
QString m_simConnectVersion;
|
||||
QString m_simulatorName;
|
||||
QString m_simulatorDetails;
|
||||
|
||||
//! SimConnect Callback
|
||||
static void CALLBACK SimConnectProc(SIMCONNECT_RECV *pData, DWORD cbData, void *pContext);
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user