0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 11:22:00 +01:00
This commit is contained in:
2025-12-23 15:13:28 +01:00
parent 703853befa
commit 79944ff2c8

View File

@@ -188,10 +188,11 @@ int run_fm95(const FM95_Config config, FM95_Runtime* runtime) {
bool mpx_on = config.options.mpx_on;
bool rds_on = config.options.rds_on;
int script_ref = 0;
// Load the file
if (luaL_loadfile(L, "/home/user/test.lua") == LUA_OK) {
if (luaL_loadfile(runtime->lua, "/home/user/test.lua") == LUA_OK) {
// luaL_ref pops the function from the stack and returns a unique integer ID
int script_ref = luaL_ref(L, LUA_REGISTRYINDEX);
script_ref = luaL_ref(L, LUA_REGISTRYINDEX);
}
while (to_run) {