== installation paths ==
* rename BLI_gethome to BLI_getDefaultDocumentFolder to better reflect how this function is used
* replaced BLI_gethome with getenv("HOME") on Linux and Mac where it retrieves location of bookmarks that are inserted as system bookmarks. BLI_gethome was a thin wrapper around these and in this case the user's home directory is what is actually wanted.
This commit is contained in:
@@ -40,14 +40,14 @@ extern "C" {
|
||||
struct ListBase;
|
||||
struct direntry;
|
||||
|
||||
char *BLI_gethome(void);
|
||||
char *BLI_getDefaultDocumentFolder(void);
|
||||
|
||||
char *BLI_get_folder(int folder_id, char *subfolder);
|
||||
char *BLI_get_folder_create(int folder_id, char *subfolder);
|
||||
|
||||
/* folder_id */
|
||||
|
||||
/* general, will find baserd on user/local/system priority */
|
||||
/* general, will find based on user/local/system priority */
|
||||
#define BLENDER_CONFIG 1
|
||||
#define BLENDER_DATAFILES 2
|
||||
#define BLENDER_SCRIPTS 3
|
||||
|
||||
Reference in New Issue
Block a user