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(path: str) -> array
```
Combines objects from JSON files of different packs.
```lua
file.name(path: str) --> str
```
Extracts the file name from the path.
``lua
file.stem(path: str) --> str
```
Extracts the file name from the path, removing the extension.
+1
View File
@@ -83,6 +83,7 @@ pack.get_info(packid: str) -> {
creator: str,
description: str,
version: str,
path: str,
icon: str, -- not available in headless mode
dependencies: optional strings array
}