XPLMGetSystemPath

XPLM_API void       XPLMGetSystemPath(
                         char *               outSystemPath);

This function returns the full path to the X-System folder. Note that this is a directory path, so it ends in a trailing : or / .

The buffer you pass should be at least 512 characters long. The path is returned using the current native or OS path conventions.