summaryrefslogtreecommitdiff
path: root/platform/javascript/detect.py
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-05-01 14:36:41 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-05-10 18:19:23 +0200
commitee99cd42d5e60f8f3d66889df3056f0b2261ec7d (patch)
tree0728eec155914dae42a767b90018517062ac92cc /platform/javascript/detect.py
parent6a0473bcc23c096ef9ee929632a209761c2668f6 (diff)
[HTML5] Locale, input fix, context, exit.
Add missing semicolumns in engine.js Add optional extra args to JS Engine.startGame Remove loader.js, explicit noExitRuntime. Also add onExit callback (undocumented in emscripten)
Diffstat (limited to 'platform/javascript/detect.py')
-rw-r--r--platform/javascript/detect.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py
index 9486e10717..c1c48a4b93 100644
--- a/platform/javascript/detect.py
+++ b/platform/javascript/detect.py
@@ -164,3 +164,6 @@ def configure(env):
# callMain for manual start, FS for preloading.
env.Append(LINKFLAGS=["-s", 'EXTRA_EXPORTED_RUNTIME_METHODS=["callMain", "FS"]'])
+
+ # Add code that allow exiting runtime.
+ env.Append(LINKFLAGS=['-s', 'EXIT_RUNTIME=1'])