From 91af279237bc74e3e76833a694b24c37249b501d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 25 Aug 2015 13:12:05 -0400 Subject: script_get(): Register bindings --- (limited to 'src/resources') diff --git a/src/resources/script.c b/src/resources/script.c index 5212219..5af4d58 100644 --- a/src/resources/script.c +++ b/src/resources/script.c @@ -20,7 +20,7 @@ #include #include #include "../logging.h" -#include "../viewport.h" +#include "../scripting/ffi.h" #include "script.h" #include "resource.h" @@ -58,7 +58,7 @@ script_get(const char *path) lua_tostring(s->lua_state, -1)); } - lua_register(s->lua_state, "init_viewport", init_viewport_lua); + ffi_register_functions(s); resource_use((struct resource *) s); resource_add(&script_res, path, (struct resource *) s); -- cgit v0.9.1