summaryrefslogtreecommitdiff
path: root/web/dartboat_wasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'web/dartboat_wasm.c')
-rw-r--r--web/dartboat_wasm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/dartboat_wasm.c b/web/dartboat_wasm.c
index 7c06849..c3091e9 100644
--- a/web/dartboat_wasm.c
+++ b/web/dartboat_wasm.c
@@ -628,9 +628,14 @@ EMSCRIPTEN_KEEPALIVE void prompt_handle(char *command, char *data)
prompt_handle_undo();
}
-int main()
+EMSCRIPTEN_KEEPALIVE void init()
{
init_boat();
set_prompt_mode(PM_VISIT);
handle_next();
}
+
+int main()
+{
+ EM_ASM(boatReady());
+}