Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2010-07-05 01:14:59 +0400
committerAndrea Weikert <elubie@gmx.net>2010-07-05 01:14:59 +0400
commit4135f1310c145d8df5e1195e3205715ada8296cb (patch)
tree5de45bd384aaae717aa16cd8796f0f54f72e0d15 /source/blender/blenlib/BLI_path_util.h
parent83a2a4e5b889a023cb3d22120f348bd9e96bc2bb (diff)
Patch [#22339] File/installation paths changes
Update after discussions on IRC: * operating system specific path retrieval is moved back to GHOST, nothing blender specific here though * cleaned up path functions a bit to remove #ifdefs * removed Cocoa from blenlib again TODO: * Matt, Damien, please check and correct the functions for Cocoa and Carbon, could only put back existing code but needs adjustment * finish GHOST_getBinaryDir - this should replace the BLI_where_am_i eventually as well as BLI_getInstallationPath on Windows and get_install_dir for the blenderplayer runtime * It would probably be nice to define GHOST_getTempDir as well and move those out * more cleanups... NOTE: Things are likely broken for macs
Diffstat (limited to 'source/blender/blenlib/BLI_path_util.h')
-rw-r--r--source/blender/blenlib/BLI_path_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_path_util.h b/source/blender/blenlib/BLI_path_util.h
index e2cb0e131a5..d149f15cd35 100644
--- a/source/blender/blenlib/BLI_path_util.h
+++ b/source/blender/blenlib/BLI_path_util.h
@@ -100,6 +100,11 @@ char *BLI_get_folder_create(int folder_id, char *subfolder);
#define BLENDER_BOOKMARK_FILE "bookmarks.txt"
#define BLENDER_HISTORY_FILE "recent-files.txt"
+#ifdef WIN32
+#define BLENDER_BASE_FORMAT "%s\\Blender Foundation\\Blender\\%s"
+#else
+#define BLENDER_BASE_FORMAT "%s/.blender/%s"
+#endif
void BLI_setenv(const char *env, const char *val);
void BLI_setenv_if_new(const char *env, const char* val);