diff options
Diffstat (limited to 'reference.md')
-rw-r--r-- | reference.md | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/reference.md b/reference.md index 3c15e46..d0956ba 100644 --- a/reference.md +++ b/reference.md @@ -347,16 +347,12 @@ The following facilities help set these things up: * `json.decode(obj)` -- turns a JSON string into a Lua object. (From [json.lua](https://github.com/rxi/json.lua).) -* `love.filesystem.getDirectoryItems(dir)` -- returns an unsorted array of the - files and directories available under `dir`. `dir` must be relative to - [LÖVE's save directory](https://love2d.org/wiki/love.filesystem.getSaveDirectory). - There is no easy, portable way in Lua/LÖVE to list directories outside the - save dir. +* `App.files(dir)` -- returns an unsorted array of the files and directories + available under `dir`. (From [LÖVE](https://love2d.org/wiki/love.filesystem.getDirectoryItems).] * `love.filesystem.getInfo(filename)` -- returns some information about `filename`, particularly whether it exists (non-`nil` return value) or not. - `filename` must be relative to [LÖVE's save directory](https://love2d.org/wiki/love.filesystem.getSaveDirectory). (From [LÖVE](https://love2d.org/wiki/love.filesystem.getInfo).] * `os.remove(filename)` -- removes a file or empty directory. Definitely make @@ -368,15 +364,15 @@ and [the Lua manual](https://www.lua.org/manual/5.1/manual.html#5.7). ### desiderata -* `App.getTime()` -- returns the number of seconds elapsed since some +* `App.get_time()` -- returns the number of seconds elapsed since some unspecified start time. (Based on [LÖVE](https://love2d.org/wiki/love.timer.getTime).) -* `App.getClipboardText()` -- returns a string with the current clipboard +* `App.get_clipboard()` -- returns a string with the current clipboard contents. (Based on [LÖVE](https://love2d.org/wiki/love.system.getClipboardText).) -* `App.setClipboardText(text)` -- stores the string `text` in the clipboard. +* `App.set_clipboard(text)` -- stores the string `text` in the clipboard. (Based on [LÖVE](https://love2d.org/wiki/love.system.setClipboardText).) * `array.find(arr, elem)` -- scan table `arr` for `elem` assuming it's |