im gonna jump off a fucking bridge

This commit is contained in:
2026-06-20 13:58:52 +02:00
parent 3efa38baab
commit 7cdd8cffc1
+17 -17
View File
@@ -92,24 +92,24 @@ uint8_t init_lua(RDSEncoder* _enc) {
lua_setfield(globalL, -2, "searchers");
lua_pop(globalL, 1);
lua_newtable(L);
lua_newtable(L);
lua_setfield(L, -2, "on_init");
lua_newtable(L);
lua_setfield(L, -2, "on_start");
lua_newtable(L);
lua_setfield(L, -2, "on_state");
lua_newtable(L);
lua_setfield(L, -2, "tick");
lua_newtable(L);
lua_setfield(L, -2, "minute_tick");
lua_newtable(L);
lua_setfield(L, -2, "rt_transmission");
lua_newtable(L);
lua_setfield(L, -2, "ps_transmission");
lua_pushvalue(L, -1);
lua_newtable(globalL);
lua_newtable(globalL);
lua_setfield(globalL, -2, "on_init");
lua_newtable(globalL);
lua_setfield(globalL, -2, "on_start");
lua_newtable(globalL);
lua_setfield(globalL, -2, "on_state");
lua_newtable(globalL);
lua_setfield(globalL, -2, "tick");
lua_newtable(globalL);
lua_setfield(globalL, -2, "minute_tick");
lua_newtable(globalL);
lua_setfield(globalL, -2, "rt_transmission");
lua_newtable(globalL);
lua_setfield(globalL, -2, "ps_transmission");
lua_pushvalue(globalL, -1);
hooks_ref = luaL_ref(globalL, LUA_REGISTRYINDEX);
lua_getglobal(L, "hooks");
lua_getglobal(globalL, "hooks");
lua_newtable(globalL);
lua_setglobal(globalL, "ext");