mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-03 22:36:14 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
409a2501e9 | ||
|
|
ce4e651af9 |
@@ -70,7 +70,7 @@ class Launcher {
|
||||
public: // variables
|
||||
static inline std::thread EntryThread{};
|
||||
static inline std::string Version{"2.1"};
|
||||
static inline std::string FullVersion{Version + ".0"};
|
||||
static inline std::string FullVersion{Version + ".1"};
|
||||
|
||||
private: // variables
|
||||
uint32_t GamePID{0};
|
||||
|
||||
@@ -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