From 80bb824929775658bb937665318ae6981642dd6f Mon Sep 17 00:00:00 2001 From: "Guillermo S. Romero" Date: Mon, 15 Feb 2010 22:50:53 +0000 Subject: System dependant functions (skeletons) to retrieve user and system base dirs. Thus #defines in BLI_bfile.c can be dropped, as suggested by Damien Plisson. Feel free to fill in the non Unix ones. For extra info see: http://wiki.blender.org/index.php/BlenderDev/Blender2.5/ResourceFilePaths http://wiki.blender.org/index.php/BlenderDev/Blender2.5/EnvironmentVariables --- intern/ghost/GHOST_ISystem.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'intern/ghost/GHOST_ISystem.h') diff --git a/intern/ghost/GHOST_ISystem.h b/intern/ghost/GHOST_ISystem.h index 8e9ac2b51ff..5e0c7f41ab8 100644 --- a/intern/ghost/GHOST_ISystem.h +++ b/intern/ghost/GHOST_ISystem.h @@ -371,6 +371,24 @@ public: virtual void putClipboard(GHOST_TInt8 *buffer, bool selection) const = 0; + /*************************************************************************************** + ** Determine special paths. + ***************************************************************************************/ + + /** + * 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. -- cgit v1.2.3