diff options
author | Campbell Barton <campbell@blender.org> | 2022-10-04 08:52:10 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-10-04 08:52:10 +0300 |
commit | 6b76381e0a52cf15513087e470a4a4c07471acc6 (patch) | |
tree | 92c0e1405a6a312f63cac77c9cfbb6f60f285375 /source/blender/blenkernel/intern/appdir.c | |
parent | bf4926b30c6fc7b9f98dde508b7b644feaf21022 (diff) |
Cleanup: rename BKE_appdir_folder_id_version, improve doc-strings
Rename BKE_appdir_folder_id_version to
BKE_appdir_resource_path_id_with_version because BKE_appdir_folder_id
and BKE_appdir_folder_id_version didn't accept compatible arguments.
Also add notes to GHOST_getSystemDir & GHOST_getUserDir that
BKE_appdir_resource_path_id(..) should be used instead (in most cases).
Diffstat (limited to 'source/blender/blenkernel/intern/appdir.c')
-rw-r--r-- | source/blender/blenkernel/intern/appdir.c | 11 |
1 files changed, 8 insertions, 3 deletions
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); +} + /** \} */ /* -------------------------------------------------------------------- */ |