System dependant functions (skeletons) to retrieve user and system base dirs.
[blender.git] / intern / ghost / intern / GHOST_SystemX11.h
index 1620d52ee651b4b4b5d1449db942a1ef8411938f..b839b5a057a6ff1cee7dc2d47ebb7ea3e4a44fcc 100644 (file)
@@ -226,6 +226,20 @@ public:
         */
        void putClipboard(GHOST_TInt8 *buffer, bool selection) const;
 
+       /**
+        * Determine the base dir in which shared resources are located. It will first try to use
+        * "unpack and run" path, then look for properly installed path, not including versioning.
+        * @return Unsigned char string pointing to system dir (eg /usr/share/blender/).
+        */
+       GHOST_TUns8* getSystemDir() const;
+
+       /**
+        * Determine the base dir in which user configuration is stored, not including versioning.
+        * If needed, it will create the base directory.
+        * @return Unsigned char string pointing to user dir (eg ~/.blender/).
+        */
+       GHOST_TUns8* getUserDir() const;
+
        /**
         * Atom used for ICCCM, WM-spec and Motif.
         * We only need get this atom at the start, it's relative