mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Delay the start of XSwiftBus
Starting XSwiftBus in CPlugin constructor called methods that are not supported during XPluginEnable. Therefore delay the start until X-Plane is fully loaded.
This commit is contained in:
@@ -78,12 +78,14 @@ namespace XSwiftBus
|
||||
DataRef<xplane::data::sim::flightmodel::position::local_z> m_ownAircraftPositionZ;
|
||||
|
||||
std::thread m_dbusThread;
|
||||
bool m_isRunning = false;
|
||||
bool m_shouldStop = false;
|
||||
|
||||
void readConfig();
|
||||
void startServer();
|
||||
void switchToOwnAircraftView();
|
||||
|
||||
static float startServerDeferred(float, float, int, void *refcon);
|
||||
static float flightLoopCallback(float, float, int, void *refcon);
|
||||
static int orbitOwnAircraftFunc(XPLMCameraPosition_t *cameraPosition, int isLosingControl, void *refcon);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user