summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game.c5
1 files changed, 4 insertions, 1 deletions
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();
}