diff options
-rw-r--r-- | src/game.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -17,6 +17,7 @@ */ #include "resources/script.h" +#include "scripting/ffi.h" #include "logging.h" #include "game.h" @@ -46,5 +47,7 @@ game_load(const char *dirname) void game_run(struct game *g) { - script_call(g->init_script, "on_init"); + ffi_context_switch(g->init_script); + ffi_prepare_call("on_init"); + ffi_call(); } |