GetUserFolderPath

From OxeyeWiki

Jump to: navigation, search

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