update docs
This commit is contained in:
parent
1e1fd53209
commit
0d832e5cfd
@ -158,3 +158,13 @@ app.get_setting_info(name: str) -> {
|
|||||||
```
|
```
|
||||||
|
|
||||||
Returns a table with information about a setting. Throws an exception if the setting does not exist.
|
Returns a table with information about a setting. Throws an exception if the setting does not exist.
|
||||||
|
|
||||||
|
|
||||||
|
```lua
|
||||||
|
app.create_memory_device(
|
||||||
|
-- entry-point name
|
||||||
|
name: str
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
Creates an in-memory filesystem.
|
||||||
|
|||||||
@ -139,6 +139,12 @@ file.create_zip(directory: str, output_file: str) --> str
|
|||||||
|
|
||||||
Creates a ZIP archive from the contents of the specified directory.
|
Creates a ZIP archive from the contents of the specified directory.
|
||||||
|
|
||||||
|
```lua
|
||||||
|
file.create_memory_device() --> str
|
||||||
|
```
|
||||||
|
|
||||||
|
Creates a memory file system and returns entry point name. Lives until content unload.
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
file.name(path: str) --> str
|
file.name(path: str) --> str
|
||||||
```
|
```
|
||||||
|
|||||||
@ -159,3 +159,12 @@ app.get_setting_info(name: str) -> {
|
|||||||
```
|
```
|
||||||
|
|
||||||
Возвращает таблицу с информацией о настройке. Бросает исключение, если настройки не существует.
|
Возвращает таблицу с информацией о настройке. Бросает исключение, если настройки не существует.
|
||||||
|
|
||||||
|
```lua
|
||||||
|
app.create_memory_device(
|
||||||
|
-- имя точки входа
|
||||||
|
name: str
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
Создаёт файловую систему в памяти.
|
||||||
|
|||||||
@ -139,6 +139,12 @@ file.create_zip(директория: str, выходной_файл: str) --> s
|
|||||||
|
|
||||||
Создаёт ZIP-архив из содержимого указанной директории.
|
Создаёт ZIP-архив из содержимого указанной директории.
|
||||||
|
|
||||||
|
```lua
|
||||||
|
file.create_memory_device() --> str
|
||||||
|
```
|
||||||
|
|
||||||
|
Создаёт файловую систему в памяти, возвращает имя точки входа. Удаляется при выгрузке контента.
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
file.name(путь: str) --> str
|
file.name(путь: str) --> str
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user