From ebee9833907d778ebcbfe5d14d7902f96233ae53 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Fri, 26 Dec 2025 11:27:56 +0100 Subject: [PATCH] change group --- scripts/0-ert.lua | 2 +- scripts/1-state.lua | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 scripts/1-state.lua diff --git a/scripts/0-ert.lua b/scripts/0-ert.lua index 7e5fa52..6834926 100644 --- a/scripts/0-ert.lua +++ b/scripts/0-ert.lua @@ -3,7 +3,7 @@ _Ert_oda_id = nil local function init_ert() if _Ert_oda_id == nil then - _Ert_oda_id = register_oda(12, false, 0x6552, 1) + _Ert_oda_id = register_oda(13, false, 0x6552, 1) set_oda_handler(_Ert_oda_id, function () if string.byte(get_userdata_offset(258, 1)) == 1 then local new_data = get_userdata_offset(0, 128) diff --git a/scripts/1-state.lua b/scripts/1-state.lua new file mode 100644 index 0000000..b9d645a --- /dev/null +++ b/scripts/1-state.lua @@ -0,0 +1,5 @@ +function on_state() + if get_rds_rtp_meta(false) then init_rtp() end + if get_rds_rtp_meta(true) then init_ertp() end + if string.byte(get_userdata_offset(257, 1)) ~= 0 then init_ert() end +end \ No newline at end of file