- MP.Core -> mp_core

- MP.Game -> mp_game
- MP.try_pop -> mp_try_pop
- MP.open_url -> mp_open_url
This commit is contained in:
Anonymous-275
2023-10-02 20:32:32 +01:00
parent 9bfaed4d3a
commit ce4e651af9
2 changed files with 8 additions and 8 deletions

View File

@@ -40,8 +40,8 @@ namespace GELuaTable {
}
inline void InsertFunction(lua_State* L, const char* name,
lua_CFunction func) {
BeginEntry(L, name);
//BeginEntry(L, name);
GELua::lua_pushcclosure(L, func, 0);
EndEntry(L);
End(L, name);
}
}

View File

@@ -109,12 +109,12 @@ int LuaOpenURL(lua_State* L) {
void BeamNG::RegisterGEFunctions() {
Memory::Print("Registering GE Functions");
GELuaTable::Begin(GELua::State);
GELuaTable::InsertFunction(GELua::State, "Core", Core);
GELuaTable::InsertFunction(GELua::State, "Game", Game);
GELuaTable::InsertFunction(GELua::State, "try_pop", LuaPop);
GELuaTable::InsertFunction(GELua::State, "open_url", LuaOpenURL);
GELuaTable::End(GELua::State, "MP");
//GELuaTable::Begin(GELua::State);
GELuaTable::InsertFunction(GELua::State, "mp_core", Core);
GELuaTable::InsertFunction(GELua::State, "mp_game", Game);
GELuaTable::InsertFunction(GELua::State, "mp_try_pop", LuaPop);
GELuaTable::InsertFunction(GELua::State, "mp_open_url", LuaOpenURL);
//GELuaTable::End(GELua::State, "MP");
Memory::Print("Registered!");
}