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