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 archivestring mountpointboolean 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 filedatastring mountpointboolean 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 datastring archivenamestring mountpointboolean 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.getInfo("content/myimage.png") ~= nil)
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.filesystem.mount