Lines Matching refs:path
227 // Returns true if the DIRECTORY_SYMBOL is contained within path
228 static inline bool loader_platform_is_path(const char *path) { return strchr(path, DIRECTORY_SYMBOL) != NULL; }
253 static inline bool loader_platform_file_exists(const char *path) {
254 if (access(path, F_OK))
261 // path, as opposed to a bare filename.
262 static inline bool loader_platform_is_path_absolute(const char *path) {
263 if (path[0] == '/')
269 static inline char *loader_platform_dirname(char *path) { return dirname(path); }
271 // loader_platform_executable_path finds application path + name.
469 static inline bool loader_platform_file_exists(const char *path) {
470 int path_utf16_size = MultiByteToWideChar(CP_UTF8, 0, path, -1, NULL, 0);
475 if (MultiByteToWideChar(CP_UTF8, 0, path, -1, path_utf16, path_utf16_size) != path_utf16_size) {
485 // path, as opposed to a bare filename.
486 static inline bool loader_platform_is_path_absolute(const char *path) {
487 if (!path || !*path) {
490 if (*path == DIRECTORY_SYMBOL || path[1] == ':') {
497 static inline char *loader_platform_dirname(char *path) {
502 for (current = path; *current != '\0'; current = next) {
505 if (current != path) *(current - 1) = '\0';
506 return path;
512 return path;