Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-22 17:25:47 +00:00

fix missing update

This commit is contained in:
bol-van
2025-11-24 15:40:48 +03:00
parent ea566720a5
commit b2f7fac102
5 changed files with 25 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
#include <time.h>
#include <fcntl.h>
#include "lua.h"
#include "params.h"
@@ -2331,6 +2332,20 @@ static bool lua_desync_functions_exist()
return true;
}
bool lua_test_init_script_files(void)
{
struct str_list *str;
LIST_FOREACH(str, &params.lua_init_scripts, next)
{
if (str->str[0]=='@' && !file_open_test(str->str+1, O_RDONLY))
{
DLOG_ERR("LUA file '%s' not accessible\n",str->str+1);
return false;
}
}
return true;
}
static bool lua_init_scripts(void)
{
struct str_list *str;