mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Detect emulated driver before casting to avoid crashs
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user