about summary refs log tree commit diff stats
path: root/reference.md
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-08-30 22:47:57 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-08-30 22:47:57 -0700
commit2dc1e690f08091851c79f7aba709ecd4603a7eef (patch)
tree67c22225ecc516ae63f0718854c74e2b11267976 /reference.md
parent82b974af29f586b369a46783a969672a654ebf0f (diff)
parent1fc11feb28bf336f9a1d74e014ad4c7418001047 (diff)
downloadview.love-2dc1e690f08091851c79f7aba709ecd4603a7eef.tar.gz
Merge text.love
Diffstat (limited to 'reference.md')
-rw-r--r--reference.md14
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