lua: added toml library + content menu fix

This commit is contained in:
MihailRis
2024-02-05 04:05:58 +03:00
parent a7ac539429
commit bcc6fef74b
4 changed files with 89 additions and 25 deletions
+5 -5
View File
@@ -16,11 +16,11 @@ namespace lua {
class LuaState {
lua_State* L;
int nextNamespace = 1;
int currentNamespace = 0;
int nextEnvironment = 1;
int currentEnvironment = 0;
void logError(const std::string& text);
void initNamespace();
void initEnvironment();
public:
LuaState();
~LuaState();
@@ -44,8 +44,8 @@ namespace lua {
bool rename(const std::string& from, const std::string& to);
void remove(const std::string& name);;
void createFuncs();
int createNamespace();
void setNamespace(int id);
int createEnvironment();
void setEnvironment(int id);
const std::string storeAnonymous();
};