0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 04:43:52 +01:00

for future (merry christmas btw)

This commit is contained in:
2025-12-24 22:12:41 +01:00
parent 20b224c045
commit 39b80e113c
2 changed files with 3 additions and 1 deletions

View File

@@ -35,13 +35,14 @@ function tick() end
function data_handle(data) end function data_handle(data) end
---This function is called when the group "L" is in the sequence ---This function is called when the group "L" is in the sequence
---It should be defined by the user in the script. ---It should be defined by the user in the script.
---@param group string group this was called in from the group sequence
---@param b integer ---@param b integer
---@param c integer ---@param c integer
---@param d integer ---@param d integer
---@return integer b ---@return integer b
---@return integer c ---@return integer c
---@return integer d ---@return integer d
function group(b, c, d) end function group(group, b, c, d) end
---@param pi integer ---@param pi integer
function set_rds_pi(pi) end function set_rds_pi(pi) end

View File

@@ -591,6 +591,7 @@ void lua_group(RDSGroup* group) {
lua_getglobal(L, "group"); lua_getglobal(L, "group");
if (lua_isfunction(L, -1)) { if (lua_isfunction(L, -1)) {
lua_pushstring(L, "L");
lua_pushinteger(L, group->b); lua_pushinteger(L, group->b);
lua_pushinteger(L, group->c); lua_pushinteger(L, group->c);
lua_pushinteger(L, group->d); lua_pushinteger(L, group->d);