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.
love.filesystem.setIdentity( name )
string name
Nothing.
Available since LÖVE 0.9.0
This variant is not supported in earlier versions.
love.filesystem.setIdentity( name, appendToPath )
string name
boolean appendToPath (false)
TRUE: results in searching source before searching save directory; FALSE: results in searching game save directory before searching source directorymounted archives.
Nothing.
-- Yes: love.filesystem.setIdentity("monkey_doom_2") -- No: love.filesystem.setIdentity("c:/Users/bob/monkey_doom_2")
--Search Source, then the save directory love.filesystem.setIdentity(love.filesystem.getIdentity(),true) --Search Save directory, then the Source Directory love.filesystem.setIdentity(love.filesystem.getIdentity(),false)
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.filesystem.setIdentity