mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-09 09:16:09 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
409a2501e9 | ||
|
|
ce4e651af9 |
@@ -70,7 +70,7 @@ class Launcher {
|
|||||||
public: // variables
|
public: // variables
|
||||||
static inline std::thread EntryThread{};
|
static inline std::thread EntryThread{};
|
||||||
static inline std::string Version{"2.1"};
|
static inline std::string Version{"2.1"};
|
||||||
static inline std::string FullVersion{Version + ".0"};
|
static inline std::string FullVersion{Version + ".1"};
|
||||||
|
|
||||||
private: // variables
|
private: // variables
|
||||||
uint32_t GamePID{0};
|
uint32_t GamePID{0};
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ namespace GELuaTable {
|
|||||||
}
|
}
|
||||||
inline void InsertFunction(lua_State* L, const char* name,
|
inline void InsertFunction(lua_State* L, const char* name,
|
||||||
lua_CFunction func) {
|
lua_CFunction func) {
|
||||||
BeginEntry(L, name);
|
//BeginEntry(L, name);
|
||||||
GELua::lua_pushcclosure(L, func, 0);
|
GELua::lua_pushcclosure(L, func, 0);
|
||||||
EndEntry(L);
|
End(L, name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -109,12 +109,12 @@ int LuaOpenURL(lua_State* L) {
|
|||||||
|
|
||||||
void BeamNG::RegisterGEFunctions() {
|
void BeamNG::RegisterGEFunctions() {
|
||||||
Memory::Print("Registering GE Functions");
|
Memory::Print("Registering GE Functions");
|
||||||
GELuaTable::Begin(GELua::State);
|
//GELuaTable::Begin(GELua::State);
|
||||||
GELuaTable::InsertFunction(GELua::State, "Core", Core);
|
GELuaTable::InsertFunction(GELua::State, "mp_core", Core);
|
||||||
GELuaTable::InsertFunction(GELua::State, "Game", Game);
|
GELuaTable::InsertFunction(GELua::State, "mp_game", Game);
|
||||||
GELuaTable::InsertFunction(GELua::State, "try_pop", LuaPop);
|
GELuaTable::InsertFunction(GELua::State, "mp_try_pop", LuaPop);
|
||||||
GELuaTable::InsertFunction(GELua::State, "open_url", LuaOpenURL);
|
GELuaTable::InsertFunction(GELua::State, "mp_open_url", LuaOpenURL);
|
||||||
GELuaTable::End(GELua::State, "MP");
|
//GELuaTable::End(GELua::State, "MP");
|
||||||
Memory::Print("Registered!");
|
Memory::Print("Registered!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user