Disable X-Plane's built-in voice ATIS when XSwiftBus is active.

This commit is contained in:
Mat Sutcliffe
2019-06-16 14:50:34 +01:00
parent bc2af4fc77
commit a3ff42793f
2 changed files with 8 additions and 0 deletions

View File

@@ -66,10 +66,15 @@ namespace XSwiftBus
// Delay the start of XSwiftBus.
// http://www.xsquawkbox.net/xpsdk/mediawiki/DeferredInitialization
XPLMRegisterFlightLoopCallback(startServerDeferred, -1, this);
m_atisSaved = m_atisEnabled.get();
m_atisEnabled.set(0);
}
CPlugin::~CPlugin()
{
m_atisEnabled.set(m_atisSaved);
XPLMUnregisterFlightLoopCallback(flightLoopCallback, this);
m_dbusConnection->close();
m_shouldStop = true;