mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 10:25:36 +08:00
Ref T437, update internals when changing FSUIPC on/off
This commit is contained in:
@@ -94,6 +94,7 @@ namespace BlackSimPlugin
|
|||||||
bool CSimulatorFsCommon::useFsuipc(bool on)
|
bool CSimulatorFsCommon::useFsuipc(bool on)
|
||||||
{
|
{
|
||||||
if (!m_fsuipc) { return false; } // no FSUIPC available
|
if (!m_fsuipc) { return false; } // no FSUIPC available
|
||||||
|
if (m_useFsuipc == on) { return m_useFsuipc; } // nothing changed
|
||||||
m_useFsuipc = on;
|
m_useFsuipc = on;
|
||||||
if (on)
|
if (on)
|
||||||
{
|
{
|
||||||
@@ -103,6 +104,8 @@ namespace BlackSimPlugin
|
|||||||
{
|
{
|
||||||
m_fsuipc->disconnect();
|
m_fsuipc->disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this->initSimulatorInternals(); // update internals
|
||||||
return m_useFsuipc;
|
return m_useFsuipc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user