src/Utilities.cpp
void GlobVars::ReadVersions ()
{
    XPLMHostApplicationID hostID = -1;
    XPLMGetVersions(&glob.verXPlane, &glob.verXPLM, &hostID);
    
    // Also read if we are using Vulkan/Metal
    XPLMDataRef drUsingModernDriver = XPLMFindDataRef("sim/graphics/view/using_modern_driver");
    if (drUsingModernDriver)            // dataRef not defined before 11.50
        bXPUsingModernGraphicsDriver = XPLMGetDatai(drUsingModernDriver) != 0;
    else
        bXPUsingModernGraphicsDriver = false;
}
// Read version numbers into verXplane/verXPLM
Read version numbers into verXplane/verXPLM
Read version numbers into verXplane / verXPLM
void GlobVars::ReadVersions ()
{
    XPLMHostApplicationID hostID = -1;
    XPLMGetVersions(&glob.verXPlane, &glob.verXPLM, &hostID);
    XPLMDataRef drUsingModernDriver = XPLMFindDataRef("sim/graphics/view/using_modern_driver");
    if (drUsingModernDriver)            
        bXPUsingModernGraphicsDriver = XPLMGetDatai(drUsingModernDriver) != 0;
    else
        bXPUsingModernGraphicsDriver = false;
}
void GlobVars :: ReadVersions ( ) { XPLMHostApplicationID hostID = -1 ; XPLMGetVersions ( & glob . verXPlane , & glob . verXPLM , & hostID ) ; XPLMDataRef drUsingModernDriver = XPLMFindDataRef ( " " ) ; if ( drUsingModernDriver ) bXPUsingModernGraphicsDriver = XPLMGetDatai ( drUsingModernDriver ) != 0 ; else bXPUsingModernGraphicsDriver = false ; }
Read version numbers into verXplane/verXPLM
Read version numbers into verXplane / verXPLM
// Also read if we are using Vulkan/Metal // dataRef not defined before 11.50