GetUserFolderPath

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
Thewreck (Talk | contribs)
(Created page with '{{DaisyMethod | daisy.getUserFolderPath(pathName) | This method returns the absolute path to the computers "user" path. On Mac OS X this is located in the user library. This meth...')

Latest revision as of 17:04, 18 January 2010

daisy.getUserFolderPath(pathName)

This method returns the absolute path to the computers "user" path. On Mac OS X this is located in the user library. This method also creates a sub folder if specified. On many systems, the game cannot create new files outside of this folder.

Parameter Expected Type Description
pathName A string Additional path relative to the user folder, this folder will be created if it doesn't exist.
Returns

Returns one String, the absolute complete path on the system to the user folder with the added pathName.

Daisymoon Video Lib

Example

   local userFolderPath = daisy.getUserFolderPath()
   local saveGamePath = daisy.getUserFolderPath("saves")
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox