getGlobalConfigurationVersion

This commit is contained in:
rusefillc 2022-12-20 21:10:11 -05:00
parent 4e61d92099
commit 904a4ee823
1 changed files with 5 additions and 0 deletions

View File

@ -839,6 +839,11 @@ void configureRusefiLuaHooks(lua_State* l) {
return 0; return 0;
}); });
lua_register(l, "getGlobalConfigurationVersion", [](lua_State* l) {
lua_pushnumber(l, engine->getGlobalConfigurationVersion());
return 1;
});
lua_register(l, "setAcDisabled", [](lua_State* l) { lua_register(l, "setAcDisabled", [](lua_State* l) {
auto value = lua_toboolean(l, 1); auto value = lua_toboolean(l, 1);
engine->module<AcController>().unmock().isDisabledByLua = value; engine->module<AcController>().unmock().isDisabledByLua = value;