From 7c5b012801e45b6537c212f86c502b977651c2d0 Mon Sep 17 00:00:00 2001 From: forever2k38 Date: Sun, 30 Aug 2026 21:04:12 +0200 Subject: initial lua --- src/config.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index 33d59b8..4019e7b 100644 --- a/src/config.c +++ b/src/config.c @@ -1,8 +1,9 @@ #include "config.h" #include "lauxlib.h" +#include "lualib.h" -int open_config(pow_config *cfg, char *path) { +int pow_open_config(pow_config *cfg, char *path) { int err; cfg->L = luaL_newstate(); @@ -13,6 +14,8 @@ int open_config(pow_config *cfg, char *path) { lua_State *L = cfg->L; // just easier to access + luaL_openlibs(L); + err = luaL_loadfile(L, path); if (err) { -- cgit v1.3