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
path: root/intern
diff options
context:
space:
mode:
authorDamien Plisson <damien.plisson@yahoo.fr>2010-02-16 11:57:05 +0300
committerDamien Plisson <damien.plisson@yahoo.fr>2010-02-16 11:57:05 +0300
commitdf60ff553dce9497fc88f2ca6923f63eee41032a (patch)
tree9b1ffa30f78f70412007269690dde14c744c5e19 /intern
parent1c0fa083b1f5f7231914e56eb005ed91dc7cc083 (diff)
OSX/deprecated Carbon: user and system base dirs retrieval implementation
As Carbon is bound to RIP, implemented only a static version of these retrieval functions.
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_SystemCarbon.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_SystemCarbon.cpp b/intern/ghost/intern/GHOST_SystemCarbon.cpp
index be1df2247d7..52b797f56b5 100644
--- a/intern/ghost/intern/GHOST_SystemCarbon.cpp
+++ b/intern/ghost/intern/GHOST_SystemCarbon.cpp
@@ -1217,10 +1217,23 @@ void GHOST_SystemCarbon::putClipboard(GHOST_TInt8 *buffer, bool selection) const
GHOST_TUns8* GHOST_SystemCarbon::getSystemDir() const
{
-
+ static GHOST_TUns8 sysPath[64];
+
+ strcpy((char*)sysPath,"/Library/Application Support/Blender");
+
+ return sysPath;
}
GHOST_TUns8* GHOST_SystemCarbon::getUserDir() const
{
-
+ static char usrPath[512] = "";
+ char* env = getenv("HOME");
+
+ if (env) {
+ strcpy(usrPath, env);
+ strcat(usrPath, "/Library/Application Support/Blender");
+ return (GHOST_TUns8*) usrPath;
+ }
+ else
+ return NULL;
}