Lua: Add FS, FS.CreateDirectory

This commit is contained in:
Lion Kortlepel committed 2021-09-19 01:30:59 +02:00
1 parent da78d77e6c
commit 7f63dd8d7d
2 files changed
+38 -24

No files matched your search

+2
View File
@@ -8,6 +8,8 @@
- ADDED `MP.IsPlayerGuest(id) -> boolean`: Whether player with id is a guest
- ADDED `MP.Settings` table providing aliases for 0,1,2,etc. in MP.Set(id,val)
- ADDED `MP.PrintRaw` prints messages without `[TIME DATE] [LUA]` etc.
- ADDED `FS` table to host some effective filesystem manipulation functions
- ADDED `FS.CreateDirectory(path) -> bool,string` creates the path's directory (all missing pieces) and returns whether it fails and why if it did
- ADDED plugin directories to `package.path` and `package.cpath` before `onInit`
- ADDED ability to add `PluginConfig.toml` to your plugin folder to change some settings
- ADDED ability to share a lua state with other plugins via `StateId` setting in `PluginConfig.toml`