From c024cd0128acf4faab48a355d81f09b3c1f9ebae Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 25 Aug 2015 13:51:06 -0400 Subject: game_run(): Use FFI functions --- (limited to 'src/game.c') diff --git a/src/game.c b/src/game.c index a98d336..c2a65f1 100644 --- a/src/game.c +++ b/src/game.c @@ -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(); } -- cgit v0.9.1