Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_path.h
| Show All 18 Lines | |||||
| /* Utility functions to get paths to files distributed with the program. For | /* Utility functions to get paths to files distributed with the program. For | ||||
| * the standalone apps, paths are relative to the executable, for dynamically | * the standalone apps, paths are relative to the executable, for dynamically | ||||
| * linked libraries, the path to the library may be set with path_init, which | * linked libraries, the path to the library may be set with path_init, which | ||||
| * then makes all paths relative to that. */ | * then makes all paths relative to that. */ | ||||
| #include <stdio.h> | #include <stdio.h> | ||||
| #include "util_set.h" | #include "util/util_set.h" | ||||
| #include "util_string.h" | #include "util/util_string.h" | ||||
| #include "util_types.h" | #include "util/util_types.h" | ||||
| #include "util_vector.h" | #include "util/util_vector.h" | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| /* program paths */ | /* program paths */ | ||||
| void path_init(const string& path = "", const string& user_path = ""); | void path_init(const string& path = "", const string& user_path = ""); | ||||
| string path_get(const string& sub = ""); | string path_get(const string& sub = ""); | ||||
| string path_user_get(const string& sub = ""); | string path_user_get(const string& sub = ""); | ||||
| string path_cache_get(const string& sub = ""); | string path_cache_get(const string& sub = ""); | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||