mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +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;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user