Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/appdir.c
| Show First 20 Lines • Show All 773 Lines • ▼ Show 20 Lines | case BLENDER_RESOURCE_PATH_LOCAL: | ||||
| ok = get_path_local_ex(path, sizeof(path), NULL, NULL, version, check_is_dir); | ok = get_path_local_ex(path, sizeof(path), NULL, NULL, version, check_is_dir); | ||||
| break; | break; | ||||
| case BLENDER_RESOURCE_PATH_SYSTEM: | case BLENDER_RESOURCE_PATH_SYSTEM: | ||||
| ok = get_path_system_ex(path, sizeof(path), NULL, NULL, version, check_is_dir); | ok = get_path_system_ex(path, sizeof(path), NULL, NULL, version, check_is_dir); | ||||
| break; | break; | ||||
| default: | default: | ||||
| path[0] = '\0'; /* in case check_is_dir is false */ | path[0] = '\0'; /* in case check_is_dir is false */ | ||||
| ok = false; | ok = false; | ||||
| BLI_assert(!"incorrect ID"); | BLI_assert_msg(0, "incorrect ID"); | ||||
| break; | break; | ||||
| } | } | ||||
| return ok ? path : NULL; | return ok ? path : NULL; | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| ▲ Show 20 Lines • Show All 406 Lines • Show Last 20 Lines | |||||