mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-07-29 16:29:17 +02:00
little improvements
This commit is contained in:
@@ -256,10 +256,3 @@ function set_rds_udg(xy, groups) end
|
||||
---@param xy boolean
|
||||
---@param groups table Table of tables, this should be up to 8 tables containing 4 integers
|
||||
function set_rds_udg2(xy, groups) end
|
||||
|
||||
---Registers an ODA to be used in the O of the group sequence
|
||||
---@param group integer
|
||||
---@param group_version boolean
|
||||
---@param id integer
|
||||
---@param id_data integer
|
||||
function register_oda(group, group_version, id, id_data) end
|
||||
+1
-5
@@ -540,17 +540,13 @@ void run_lua(char *str, char *cmd_output) {
|
||||
const char *res = lua_tostring(L, -1);
|
||||
strcpy(cmd_output, res);
|
||||
}
|
||||
lua_pop(L, 1);
|
||||
} else {
|
||||
fprintf(stderr, "Lua error: %s\n", lua_tostring(L, -1));
|
||||
lua_pop(L, 1);
|
||||
}
|
||||
} else if (lua_isstring(L, -1)) {
|
||||
if (cmd_output) strcpy(cmd_output, lua_tostring(L, -1));
|
||||
lua_pop(L, 1);
|
||||
} else {
|
||||
lua_pop(L, 1);
|
||||
}
|
||||
lua_pop(L, 1);
|
||||
}
|
||||
|
||||
void lua_group(RDSGroup* group) {
|
||||
|
||||
Reference in New Issue
Block a user