Ref T723 [xswiftbus] Expose configuration for render phase debug messages

This commit is contained in:
Mat Sutcliffe
2019-12-27 20:50:55 +00:00
parent 95d273442c
commit 8d204cded1
9 changed files with 53 additions and 0 deletions

View File

@@ -36,6 +36,11 @@ namespace BlackMisc
}
void CXSwiftBusConfigWriter::setDebugMode(bool on)
{
m_debug = on;
}
void CXSwiftBusConfigWriter::updateInAllXPlaneVersions()
{
updateInXPlane9();
@@ -77,6 +82,9 @@ namespace BlackMisc
ts << endl;
ts << "# DBus server port - relevant for P2P mode only" << endl;
ts << "dbusPort = " << m_dbusPort << endl;
ts << endl;
ts << "# Render phase debugging - to help diagnose crashes" << endl;
ts << "debug = " << boolToOnOff(m_debug) << endl;
}
}
} // ns

View File

@@ -33,6 +33,9 @@ namespace BlackMisc
//! Set new DBus address
void setDBusAddress(const QString &dBusAddress);
//! Set debug on/off
void setDebugMode(bool on);
//! Update xswiftbus.conf in all known X-Plane versions (XP9 - XP11 are supported)
void updateInAllXPlaneVersions();
@@ -52,6 +55,7 @@ namespace BlackMisc
QString m_dbusMode = "p2p";
QString m_dbusAddress = "127.0.0.1";
QString m_dbusPort = "45001";
bool m_debug = false;
};
}
}