src/Utilities.cpp
std::string TOPOSIX (const std::string& p)
{
    // no actual conversion if XPLM_USE_NATIVE_PATHS is activated
    if (XPLMIsFeatureEnabled("XPLM_USE_NATIVE_PATHS"))
        return p;
    else {
        char posix[1024];
        if (HFS2PosixPath(p.c_str(), posix, sizeof(posix)))
            return posix;
        else
            return p;
    }
}
// Checks how XPLM_USE_NATIVE_PATHS is set (recommended to use), and if not set converts the path from HFS to POSIX
Checks how XPLM_USE_NATIVE_PATHS is set (recommended to use), and if not set converts the path from HFS to POSIX
Checks how XPLM_USE_NATIVE_PATHS is set ( recommended to use ) and if not set converts the path from HFS to POSIX
std::string TOPOSIX (const std::string& p)
{
    if (XPLMIsFeatureEnabled("XPLM_USE_NATIVE_PATHS"))
        return p;
    else {
        char posix[1024];
        if (HFS2PosixPath(p.c_str(), posix, sizeof(posix)))
            return posix;
        else
            return p;
    }
}
std :: string TOPOSIX ( const std :: string & p ) { if ( XPLMIsFeatureEnabled ( " " ) ) return p ; else { char posix [ 1024 ] ; if ( HFS2PosixPath ( p . c_str ( ) , posix , sizeof ( posix ) ) ) return posix ; else return p ; } }
Checks how XPLM_USE_NATIVE_PATHS is set (recommended to use), and if not set converts the path from HFS to POSIX
Checks how XPLM_USE_NATIVE_PATHS is set ( recommended to use ) and if not set converts the path from HFS to POSIX
// no actual conversion if XPLM_USE_NATIVE_PATHS is activated