mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
committed by
Mathew Sutcliffe
parent
0f2680ba2a
commit
7b9747b35c
@@ -339,6 +339,18 @@ namespace BlackMisc
|
||||
}
|
||||
return simconnectTemperatures;
|
||||
}
|
||||
|
||||
CWinDllUtils::DLLInfo CSimConnectUtilities::simConnectDllInfo()
|
||||
{
|
||||
const QList<CWinDllUtils::ProcessModule> modules = CWinDllUtils::getModules(-1, "simconnect");
|
||||
if (modules.isEmpty())
|
||||
{
|
||||
CWinDllUtils::DLLInfo info;
|
||||
info.errorMsg = "No SimConnect.dll loaded";
|
||||
return info;
|
||||
}
|
||||
return CWinDllUtils::getDllInfo(modules.first().executable);
|
||||
}
|
||||
} // namespace
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user