mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
Minor FSX driver updates
This commit is contained in:
@@ -81,8 +81,9 @@ namespace BlackSimPlugin
|
|||||||
|
|
||||||
// reset flags
|
// reset flags
|
||||||
m_simPaused = false;
|
m_simPaused = false;
|
||||||
|
const bool r = CSimulatorPluginCommon::disconnectFrom();
|
||||||
this->emitSimulatorCombinedStatus();
|
this->emitSimulatorCombinedStatus();
|
||||||
return CSimulatorPluginCommon::disconnectFrom();
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CSimulatorFsCommon::isFsuipcOpened() const
|
bool CSimulatorFsCommon::isFsuipcOpened() const
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ namespace BlackSimPlugin
|
|||||||
bool CSimulatorFsxCommon::disconnectFrom()
|
bool CSimulatorFsxCommon::disconnectFrom()
|
||||||
{
|
{
|
||||||
if (!m_simConnected) { return true; }
|
if (!m_simConnected) { return true; }
|
||||||
m_simSimulating = false; // treat as stopped, just setting the flag here avoids overhead of on onSimStopped
|
m_simSimulating = false; // thread as stopped, just setting the flag here avoids overhead of on onSimStopped
|
||||||
m_traceAutoUntilTs = -1;
|
m_traceAutoUntilTs = -1;
|
||||||
m_traceSendId = false;
|
m_traceSendId = false;
|
||||||
this->reset(); // mark as disconnected and reset all values
|
this->reset(); // mark as disconnected and reset all values
|
||||||
|
|||||||
Reference in New Issue
Block a user