Commit 5b0b45a2 authored by nanahira's avatar nanahira

Merge branch 'master' of git.moenext.com:nanahira/ygopro-core into develop

parents bf0e868b 590c6d5d
Pipeline #42986 passed with stages
in 2 minutes and 22 seconds
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
extern "C" EMSCRIPTEN_KEEPALIVE void ocgcore_shutdown(int code) {
emscripten_force_exit(code);
}
#endif
......@@ -112,12 +112,16 @@ project "ocgcore"
local wasmLinkOptions = {
"-s MODULARIZE=1",
"-s EXPORT_NAME=\"createOcgcore\"",
"--no-entry",
"--no-entry",
"-s EXIT_RUNTIME=1",
"-s ENVIRONMENT=web,worker,node",
"-s EXPORTED_RUNTIME_METHODS=[\"ccall\",\"cwrap\",\"addFunction\",\"removeFunction\"]",
"-s EXPORTED_FUNCTIONS=[\"_malloc\",\"_free\"]",
"-s ALLOW_TABLE_GROWTH=1",
"-s ALLOW_MEMORY_GROWTH=1",
"-s ASSERTIONS=0",
"-s SAFE_HEAP=0",
"-s DEMANGLE_SUPPORT=0",
}
linkoptions(wasmLinkOptions)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment