mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 02:06:08 +08:00
committed by
Mathew Sutcliffe
parent
0f2680ba2a
commit
7b9747b35c
@@ -339,6 +339,18 @@ namespace BlackMisc
|
|||||||
}
|
}
|
||||||
return simconnectTemperatures;
|
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
|
} // namespace
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
#include "blackmisc/aviation/aircraftlights.h"
|
#include "blackmisc/aviation/aircraftlights.h"
|
||||||
#include "blackmisc/weather/gridpoint.h"
|
#include "blackmisc/weather/gridpoint.h"
|
||||||
#include "blackmisc/blackmiscexport.h"
|
#include "blackmisc/blackmiscexport.h"
|
||||||
|
#include "blackmisc/windllutils.h"
|
||||||
|
|
||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
@@ -169,6 +170,9 @@ namespace BlackMisc
|
|||||||
//! Converts the weather at gridPoint to a SimConnect METAR string
|
//! Converts the weather at gridPoint to a SimConnect METAR string
|
||||||
static QString convertToSimConnectMetar(const BlackMisc::Weather::CGridPoint &gridPoint);
|
static QString convertToSimConnectMetar(const BlackMisc::Weather::CGridPoint &gridPoint);
|
||||||
|
|
||||||
|
//! Get info about SimConnect DLL
|
||||||
|
static BlackMisc::CWinDllUtils::DLLInfo simConnectDllInfo();
|
||||||
|
|
||||||
//! Register metadata
|
//! Register metadata
|
||||||
static void registerMetadata();
|
static void registerMetadata();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user