System dependant functions (skeletons) to retrieve user and system base dirs.
[blender.git] / intern / ghost / intern / GHOST_System.h
index 2b45bfb86cf781213a1eb179ce27dab519d29d34..59f933ea8651b2591129326505de120894a75cb7 100644 (file)
@@ -297,6 +297,20 @@ public:
           */
          virtual void putClipboard(GHOST_TInt8 *buffer, bool selection) const = 0;
 
+       /**
+        * 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/).
+        */
+       virtual GHOST_TUns8* getSystemDir() const = 0;
+
+       /**
+        * 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/).
+        */
+       virtual GHOST_TUns8* getUserDir() const = 0;
+
 protected:
        /**
         * Initialize the system.