Detect emulated driver before casting to avoid crashs

This commit is contained in:
Klaus Basan
2018-11-04 22:03:35 +01:00
parent c056d74820
commit dfd33e40c1
7 changed files with 16 additions and 6 deletions

View File

@@ -243,6 +243,9 @@ namespace BlackCore
//! \copydoc BlackMisc::IProvider::asQObject
virtual QObject *asQObject() override { return this; }
//! Is this the emulated driver just pretending to be P3D, FSX, or XPlane
bool isEmulatedDriver() const;
//! \addtogroup swiftdotcommands
//! @{
//! <pre>