2 Commits

Author SHA1 Message Date
Anonymous-275
409a2501e9 v2.1.1 2023-10-02 20:33:04 +01:00
Anonymous-275
ce4e651af9 - MP.Core -> mp_core
- MP.Game -> mp_game
- MP.try_pop -> mp_try_pop
- MP.open_url -> mp_open_url
2023-10-02 20:32:32 +01:00
3 changed files with 9 additions and 9 deletions

View File

@@ -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};

View File

@@ -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);
} }
} }

View File

@@ -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!");
} }