diff options
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_appdir.h | 5 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/appdir.c | 11 |
2 files changed, 12 insertions, 4 deletions
diff --git a/source/blender/blenkernel/BKE_appdir.h b/source/blender/blenkernel/BKE_appdir.h index 0f00ab9c321..a67c6c27b47 100644 --- a/source/blender/blenkernel/BKE_appdir.h +++ b/source/blender/blenkernel/BKE_appdir.h @@ -90,7 +90,10 @@ const char *BKE_appdir_folder_id_user_notest(int folder_id, * Returns the path of the top-level version-specific local, user or system directory. * If check_is_dir, then the result will be NULL if the directory doesn't exist. */ -const char *BKE_appdir_folder_id_version(int folder_id, int version, bool check_is_dir); +const char *BKE_appdir_resource_path_id_with_version(int folder_id, + bool check_is_dir, + int version); +const char *BKE_appdir_resource_path_id(int folder_id, bool check_is_dir); /** * Check if this is an install with user files kept together diff --git a/source/blender/blenkernel/intern/appdir.c b/source/blender/blenkernel/intern/appdir.c index 7c409f1095b..b2f1e75cd1d 100644 --- a/source/blender/blenkernel/intern/appdir.c +++ b/source/blender/blenkernel/intern/appdir.c @@ -760,9 +760,9 @@ const char *BKE_appdir_folder_id_create(const int folder_id, const char *subfold return path; } -const char *BKE_appdir_folder_id_version(const int folder_id, - const int version, - const bool check_is_dir) +const char *BKE_appdir_resource_path_id_with_version(const int folder_id, + const bool check_is_dir, + const int version) { static char path[FILE_MAX] = ""; bool ok; @@ -785,6 +785,11 @@ const char *BKE_appdir_folder_id_version(const int folder_id, return ok ? path : NULL; } +const char *BKE_appdir_resource_path_id(const int folder_id, const bool check_is_dir) +{ + return BKE_appdir_resource_path_id_with_version(folder_id, check_is_dir, BLENDER_VERSION); +} + /** \} */ /* -------------------------------------------------------------------- */ |