mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Make FSUIPC optional
Summary: If FSUIPC is configured, its support will be enabled in swift and disabled otherwise. Ref T91 Reviewers: #swift_pilot_client, msutcliffe Reviewed By: #swift_pilot_client, msutcliffe Subscribers: msutcliffe, jenkins, kbasan Maniphest Tasks: T91 Differential Revision: https://dev.swift-project.org/D28
This commit is contained in:
@@ -33,7 +33,7 @@ namespace BlackSimPlugin
|
||||
Weather::IWeatherGridProvider *weatherGridProvider,
|
||||
QObject *parent) :
|
||||
CSimulatorCommon(info, ownAircraftProvider, renderedAircraftProvider, weatherGridProvider, parent),
|
||||
m_fsuipc(new CFsuipc())
|
||||
m_fsuipc(std::make_unique<CFsuipc>(this))
|
||||
{
|
||||
CSimulatorFsCommon::registerHelp();
|
||||
}
|
||||
@@ -79,7 +79,7 @@ namespace BlackSimPlugin
|
||||
|
||||
bool CSimulatorFsCommon::isFsuipcConnected() const
|
||||
{
|
||||
return !m_fsuipc.isNull() && m_fsuipc->isConnected();
|
||||
return m_fsuipc && m_fsuipc->isConnected();
|
||||
}
|
||||
|
||||
bool CSimulatorFsCommon::useFsuipc(bool on)
|
||||
|
||||
Reference in New Issue
Block a user