summaryrefslogtreecommitdiff
path: root/meta/3rd/love2d/library/love.filesystem.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2022-02-08 11:55:55 +0800
committersumneko <sumneko@hotmail.com>2022-02-08 11:55:55 +0800
commit12245cffd05136e0fb5da059df72a015a1bdb949 (patch)
tree115daf7a7ab68bf529090d2e7d60e22ffd9086d6 /meta/3rd/love2d/library/love.filesystem.lua
parent2a037712774572eeb7898ea4e838f08a5c4da2b2 (diff)
downloadlua-language-server-12245cffd05136e0fb5da059df72a015a1bdb949.zip
update docs
Diffstat (limited to 'meta/3rd/love2d/library/love.filesystem.lua')
-rw-r--r--meta/3rd/love2d/library/love.filesystem.lua9
1 files changed, 5 insertions, 4 deletions
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
---