diff options
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemCarbon.cpp | 17 |
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; } |