refs #910, check SimConnect DLL in listener

(preliminary version before we know P3D string variety)
This commit is contained in:
Klaus Basan
2017-03-13 16:36:06 +01:00
committed by Mathew Sutcliffe
parent 7b9747b35c
commit 83c0dd6dfa
2 changed files with 10 additions and 0 deletions

View File

@@ -1373,6 +1373,13 @@ namespace BlackSimPlugin
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)
{
Q_UNUSED(cbData);

View File

@@ -305,6 +305,9 @@ namespace BlackSimPlugin
//! Check simulator version and type
bool checkVersionAndSimulator() const;
//! Check the simconnect.dll
bool checkSimConnectDll() const;
private:
QTimer *m_timer { nullptr };
QString m_simulatorVersion;