aboutsummaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c5
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) {