0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 20:33:53 +01:00

rft tests

This commit is contained in:
2025-12-28 12:03:53 +01:00
parent ec4d9a8440
commit 7d98606917
6 changed files with 70 additions and 8 deletions

View File

@@ -68,6 +68,8 @@ function get_rds_ert()
return data:match("^(.-)[\r%z]*") or ""
end
local _old_on_state_ert = on_state
function on_state()
if string.byte(get_userdata_offset(257, 1)) ~= 0 then init_ert() end
if type(_old_on_state_ert) == "function" then _old_on_state_ert() end
end