Source

love-mount / tests / basic-overloading / main.lua


function love.load()
	-- mount the archive
	love.filesystem.mount("test.zip")
	
	if res == false then
		print("Failed to mount archive: " .. msg)
		return love.event.quit()
	end
	
	
	print("The message is: "..love.filesystem.read("TextFile.txt"))

	print("Now I'm going to save some kittens by umounting that archive!")
	love.filesystem.umount("test.zip")
	
	-- go through all files
	print("Now let's confirm archive is no longer available")
	print("Message reads: "..love.filesystem.read("TextFile.txt"))
	
	return love.event.quit()
end