diff options
| author | forever2k38 <forever2k38@noreply.codeberg.org> | 2026-08-30 21:04:12 +0200 |
|---|---|---|
| committer | forever2k38 <forever2k38@noreply.codeberg.org> | 2026-08-30 21:04:12 +0200 |
| commit | 7c5b012801e45b6537c212f86c502b977651c2d0 (patch) | |
| tree | adcfde7acdcc80e786a00208da715019014467d0 /src/config.c | |
| parent | 02fd79105a7fe5ac6a04e76db27b163e4064f759 (diff) | |
initial lua
Diffstat (limited to 'src/config.c')
| -rw-r--r-- | src/config.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |
