Lua: Add various FS functions

This commit is contained in:
Lion Kortlepel
2021-09-21 00:27:09 +02:00
parent 23ffa25d78
commit fe3ccafc1d
3 changed files with 32 additions and 1 deletions

View File

@@ -458,6 +458,9 @@ TLuaEngine::StateThreadData::StateThreadData(const std::string& Name, std::atomi
FSTable.set_function("GetFilename", &LuaAPI::FS::GetFilename);
FSTable.set_function("GetExtension", &LuaAPI::FS::GetExtension);
FSTable.set_function("GetParentFolder", &LuaAPI::FS::GetParentFolder);
FSTable.set_function("IsDirectory", &LuaAPI::FS::IsDirectory);
FSTable.set_function("IsFile", &LuaAPI::FS::IsFile);
FSTable.set_function("ConcatPaths", &LuaAPI::FS::ConcatPaths);
Start();
}