mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-08 03:35:35 +08:00
Ref T437, renamed CFsuipc functions to align with FSUIPC code
This commit is contained in:
@@ -140,7 +140,7 @@ namespace BlackSimPlugin
|
||||
|
||||
if (m_useFsuipc)
|
||||
{
|
||||
m_fsuipc->connect(); // connect FSUIPC too
|
||||
m_fsuipc->open(); // connect FSUIPC too
|
||||
}
|
||||
this->initSimulatorInternals();
|
||||
m_timerId = startTimer(50);
|
||||
@@ -305,7 +305,7 @@ namespace BlackSimPlugin
|
||||
|
||||
void CSimulatorFs9::dispatch()
|
||||
{
|
||||
if (m_useFsuipc && m_fsuipc && m_fsuipc->isConnected())
|
||||
if (m_useFsuipc && m_fsuipc && m_fsuipc->isOpened())
|
||||
{
|
||||
CSimulatedAircraft fsuipcAircraft(getOwnAircraft());
|
||||
const bool ok = m_fsuipc->read(fsuipcAircraft, true, true, true);
|
||||
@@ -394,7 +394,7 @@ namespace BlackSimPlugin
|
||||
void CSimulatorFs9::injectWeatherGrid(const Weather::CWeatherGrid &weatherGrid)
|
||||
{
|
||||
if (!m_useFsuipc || !m_fsuipc) { return; }
|
||||
if (!m_fsuipc->isConnected()) { return; }
|
||||
if (!m_fsuipc->isOpened()) { return; }
|
||||
m_fsuipc->write(weatherGrid);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user