Browse Source

Add lovr.filesystem.mount return value;

bjorn 6 years ago
parent
commit
ca106e1fcc
2 changed files with 14 additions and 2 deletions
  1. 7 1
      api/init.lua
  2. 7 1
      api/lovr/filesystem/mount.lua

+ 7 - 1
api/init.lua

@@ -4635,7 +4635,13 @@ return {
                   default = "false"
                 }
               },
-              returns = {}
+              returns = {
+                {
+                  name = "success",
+                  type = "boolean",
+                  description = "Whether the archive was successfully mounted."
+                }
+              }
             }
           },
           notes = "The `append` option lets you control the priority of the archive's files in the event of naming collisions.",

+ 7 - 1
api/lovr/filesystem/mount.lua

@@ -25,7 +25,13 @@ return {
       ]]
     }
   },
-  returns = {},
+  returns = {
+    {
+      name = 'success',
+      type = 'boolean',
+      description = 'Whether the archive was successfully mounted.'
+    }
+  },
   notes = [[
     The `append` option lets you control the priority of the archive's files in the event of naming
     collisions.