| 7080 | #endif |
| 7081 | |
| 7082 | XnStatus xnGetOpenNIConfFilesPath(XnChar* strDest, XnUInt32 nBufSize) |
| 7083 | { |
| 7084 | XnStatus nRetVal = XN_STATUS_OK; |
| 7085 | |
| 7086 | #if XN_PLATFORM == XN_PLATFORM_ANDROID_ARM |
| 7087 | |
| 7088 | |
| 7089 | xnOSGetApplicationFilesDir(strDest, nBufSize); |
| 7090 | #else |
| 7091 | nRetVal = xnOSGetEnvironmentVariable(XN_OPEN_NI_INSTALL_PATH_ENV, strDest, nBufSize); |
| 7092 | if (nRetVal == XN_STATUS_OS_ENV_VAR_NOT_FOUND) |
| 7093 | { |
| 7094 | #if (XN_PLATFORM == XN_PLATFORM_WIN32) |
| 7095 | // we don't allow environment variable not to be defined on Windows. |
| 7096 | return nRetVal; |
| 7097 | #else |
| 7098 | // use root FS |
| 7099 | strDest[0] = '\0'; |
| 7100 | #endif |
| 7101 | } |
| 7102 | else |
| 7103 | { |
| 7104 | XN_IS_STATUS_OK(nRetVal); |
| 7105 | } |
| 7106 | |
| 7107 | nRetVal = xnOSStrAppend(strDest, XN_OPEN_NI_FILES_LOCATION, nBufSize); |
| 7108 | XN_IS_STATUS_OK(nRetVal); |
| 7109 | #endif |
| 7110 | |
| 7111 | return (XN_STATUS_OK); |
| 7112 | } |
no test coverage detected