Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/appdir.c
| Show First 20 Lines • Show All 270 Lines • ▼ Show 20 Lines | static bool get_path_environment( | ||||
| return false; | return false; | ||||
| } | } | ||||
| /** | /** | ||||
| * Returns the path of a folder within the user-files area. | * Returns the path of a folder within the user-files area. | ||||
| * \param targetpath: String to return path | * \param targetpath: String to return path | ||||
| * \param folder_name: default name of folder within user area | * \param folder_name: default name of folder within user area | ||||
| * \param subfolder_name: optional name of subfolder within folder | * \param subfolder_name: optional name of subfolder within folder | ||||
| * \param ver: Blender version, used to construct a subdirectory name | * \param ver: Blender version, used to construct a subdirectory name | ||||
| * \return true if it was able to construct such a path. | * \return true if it was able to construct such a path. | ||||
| */ | */ | ||||
| static bool get_path_user( | static bool get_path_user( | ||||
| char *targetpath, size_t targetpath_len, const char *folder_name, const char *subfolder_name, | char *targetpath, size_t targetpath_len, const char *folder_name, const char *subfolder_name, | ||||
| const int ver) | const int ver) | ||||
| { | { | ||||
| char user_path[FILE_MAX]; | char user_path[FILE_MAX]; | ||||
| const char *user_base_path; | const char *user_base_path; | ||||
| ▲ Show 20 Lines • Show All 617 Lines • Show Last 20 Lines | |||||