Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Mounts a zip file or folder in the game's save directory for reading. It is also possible to mount love.filesystem.getSourceBaseDirectory if the game is in fused mode.
success = love.filesystem.mount( archive, mountpoint, appendToPath )
string archive
string mountpoint
boolean appendToPath (false)
boolean success
Available since LÖVE 11.0 |
This variant is not supported in earlier versions. |
Mounts the contents of the given FileData in memory. The FileData's data must contain a zipped directory structure.
success = love.filesystem.mount( filedata, mountpoint, appendToPath )
FileData filedata
string mountpoint
boolean appendToPath (false)
boolean success
Available since LÖVE 11.0 |
This variant is not supported in earlier versions. |
Mounts the contents of the given Data object in memory. The data must contain a zipped directory structure.
success = love.filesystem.mount( data, archivename, mountpoint, appendToPath )
Data data
string archivename
string mountpoint
boolean appendToPath (false)
boolean success
-- Assuming content.zip exists in the game's save directory and contains a file called 'myimage.png'. love.filesystem.mount("content.zip", "content") assert(love.filesystem.exists("content/myimage.png"))