* added B_COMMON_CACHE_DIRECTORY to find_directory()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40279 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ccd062a898
commit
77a8a5cce3
@ -51,6 +51,7 @@ typedef enum {
|
||||
B_COMMON_MEDIA_NODES_DIRECTORY,
|
||||
B_COMMON_SOUNDS_DIRECTORY,
|
||||
B_COMMON_DATA_DIRECTORY,
|
||||
B_COMMON_CACHE_DIRECTORY,
|
||||
|
||||
/* User directories. These are interpreted in the context
|
||||
of the user making the find_directory call. */
|
||||
|
@ -80,6 +80,7 @@ static const char *kCommonDirectories[] = {
|
||||
COMMON "/add-ons/media",
|
||||
COMMON "/data/sounds",
|
||||
COMMON "/data",
|
||||
COMMON "/cache", // B_COMMON_CACHE_DIRECTORY
|
||||
};
|
||||
|
||||
/* User directories */
|
||||
@ -247,6 +248,7 @@ find_directory(directory_which which, dev_t device, bool createIt,
|
||||
case B_COMMON_MEDIA_NODES_DIRECTORY:
|
||||
case B_COMMON_SOUNDS_DIRECTORY:
|
||||
case B_COMMON_DATA_DIRECTORY:
|
||||
case B_COMMON_CACHE_DIRECTORY:
|
||||
templatePath = kCommonDirectories[which - B_COMMON_DIRECTORY];
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user