mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 12:45:40 +08:00
refs #910, check SimConnect DLL in listener
(preliminary version before we know P3D string variety)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
7b9747b35c
commit
83c0dd6dfa
@@ -1373,6 +1373,13 @@ namespace BlackSimPlugin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool CSimulatorFsxCommonListener::checkSimConnectDll() const
|
||||||
|
{
|
||||||
|
static const CWinDllUtils::DLLInfo simConnectInfo = CSimConnectUtilities::simConnectDllInfo();
|
||||||
|
if (!simConnectInfo.errorMsg.isEmpty()) { return false; }
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
void CSimulatorFsxCommonListener::SimConnectProc(SIMCONNECT_RECV *pData, DWORD cbData, void *pContext)
|
void CSimulatorFsxCommonListener::SimConnectProc(SIMCONNECT_RECV *pData, DWORD cbData, void *pContext)
|
||||||
{
|
{
|
||||||
Q_UNUSED(cbData);
|
Q_UNUSED(cbData);
|
||||||
|
|||||||
@@ -305,6 +305,9 @@ namespace BlackSimPlugin
|
|||||||
//! Check simulator version and type
|
//! Check simulator version and type
|
||||||
bool checkVersionAndSimulator() const;
|
bool checkVersionAndSimulator() const;
|
||||||
|
|
||||||
|
//! Check the simconnect.dll
|
||||||
|
bool checkSimConnectDll() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QTimer *m_timer { nullptr };
|
QTimer *m_timer { nullptr };
|
||||||
QString m_simulatorVersion;
|
QString m_simulatorVersion;
|
||||||
|
|||||||
Reference in New Issue
Block a user