From 12245cffd05136e0fb5da059df72a015a1bdb949 Mon Sep 17 00:00:00 2001 From: sumneko Date: Tue, 8 Feb 2022 11:55:55 +0800 Subject: update docs --- meta/3rd/love2d/library/love.filesystem.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'meta/3rd/love2d/library/love.filesystem.lua') diff --git a/meta/3rd/love2d/library/love.filesystem.lua b/meta/3rd/love2d/library/love.filesystem.lua index 5865b6bc..5925539a 100644 --- a/meta/3rd/love2d/library/love.filesystem.lua +++ b/meta/3rd/love2d/library/love.filesystem.lua @@ -186,12 +186,13 @@ function love.filesystem.mount(archive, mountpoint, appendToPath) end function love.filesystem.newFile(filename) end --- ----Creates a new FileData object. +---Creates a new FileData object from a file on disk, or from a string in memory. --- +---@overload fun(originaldata: love.Data, name: string):love.FileData ---@overload fun(filepath: string):love.FileData, string ----@param contents string # The contents of the file. ----@param name string # The name of the file. ----@return love.FileData data # Your new FileData. +---@param contents string # The contents of the file in memory represented as a string. +---@param name string # The name of the file. The extension may be parsed and used by LÖVE when passing the FileData object into love.audio.newSource. +---@return love.FileData data # The new FileData. function love.filesystem.newFileData(contents, name) end --- -- cgit v1.2.3