mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05: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)
|
||||
{
|
||||
if (!m_fsuipc) { return false; } // no FSUIPC available
|
||||
if (m_useFsuipc == on) { return m_useFsuipc; } // nothing changed
|
||||
m_useFsuipc = on;
|
||||
if (on)
|
||||
{
|
||||
@@ -103,6 +104,8 @@ namespace BlackSimPlugin
|
||||
{
|
||||
m_fsuipc->disconnect();
|
||||
}
|
||||
|
||||
this->initSimulatorInternals(); // update internals
|
||||
return m_useFsuipc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user