Code: Select all
local b64data = string.gsub([[ base64 encoded data with linebreaks here ]], "\n", "")
local gzipData = love.filesystem.newFileData(b64data, "file.dat.gz", "base64")
local rawData = love.math.decompress(gzipData, "gzip")
local fileData = love.filesystem.newFileData(rawData, "file.dat", "file")
And what is the name parameter of newFileData() used for? Probably for FileData:getFilename(), but does it have to follow any semantics or conventions? Can I use the same filename multiple times?