XPLMInitFlight

XPLM_API XPLMInitResult XPLMInitFlight(
                         char const*          inJsonData);

Initialize a new flight, ending th user’s current flight. The flight config is provided as json string. See /article/flight-initialization-api/ for the JSON format specification.

Returns a XPLMInitResult enum value specifying whether the initalization succeeeded (and if not, what caused it to fail).