mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-02-16 10:40:46 +00:00
- 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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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!");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user