add file.name(), file.stem() & add 'path' to pack info & add start_coroutine()

This commit is contained in:
MihailRis
2025-01-05 22:44:32 +03:00
parent c51a7e0153
commit 136c35591c
14 changed files with 147 additions and 70 deletions
+12
View File
@@ -120,3 +120,15 @@ file.read_combined_object(путь: str) -> массив
```
Совмещает объекты из JSON файлов разных паков.
```lua
file.name(путь: str) --> str
```
Извлекает имя файла из пути.
```lua
file.stem(путь: str) --> str
```
Извлекает имя файла из пути, удаляя расширение.
+1
View File
@@ -70,6 +70,7 @@ pack.get_info(packid: str) -> {
creator: str,
description: str,
version: str,
path: str,
icon: str, -- отсутствует в headless режиме
dependencies: опциональный массив строк
}