Difference between revisions of "love.filesystem.setIdentity"

m (1 revision: Importing from potato (again).)
m (included link to other languages)
Line 1: Line 1:
 
 
Sets the write directory for your game.  
 
Sets the write directory for your game.  
 
Note that you can only set the name of the folder to store your files in, not the location.
 
Note that you can only set the name of the folder to store your files in, not the location.
Line 24: Line 23:
 
{{#set:Description=Sets the write directory for your game.  
 
{{#set:Description=Sets the write directory for your game.  
 
}}
 
}}
 +
== Other Languages ==
 +
{{i18n|love.filesystem.setIdentity}}

Revision as of 08:56, 5 January 2011

Sets the write directory for your game. Note that you can only set the name of the folder to store your files in, not the location.

Function

Synopsis

love.filesystem.setIdentity( name )

Arguments

string name
The new identity that will be used as write directory

Returns

Nothing.

Examples

Setting the game folder name

-- Yes:
love.filesystem.setIdentity("monkey_doom_2")
-- No: 
-- love.filesystem.setIdentity("c:/Users/bob/monkey_doom_2")

See Also

Other Languages