System dependant functions (skeletons) to retrieve user and system base dirs.
[blender.git] / intern / ghost / intern / GHOST_SystemWin32.h
index dd0b6dee0ed3b0806ebaec9014c44d50cf84257c..1b7b2aad76665e68ccda093745d3137a340dd3f1 100644 (file)
@@ -187,6 +187,21 @@ public:
         */
        virtual 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;
+
        /**
         * Creates a drag'n'drop event and pushes it immediately onto the event queue. 
         * Called by GHOST_DropTargetWin32 class.