diff options
author | Leon Krause <lk@leonkrause.com> | 2017-08-13 13:10:04 +0200 |
---|---|---|
committer | Leon Krause <lk@leonkrause.com> | 2017-09-11 20:56:29 +0200 |
commit | 4db801aaeac130a74197ab43e531ce2533414eb9 (patch) | |
tree | 65cb628baaea9b9c680557b41f603bba276306bf /platform/javascript/detect.py | |
parent | b4ad899ef64df6e341a4cbe52a15109cd3d6b2eb (diff) | |
download | redot-engine-4db801aaeac130a74197ab43e531ce2533414eb9.tar.gz |
HTML5 start-up overhaul
- Implement promise-based JS interface for custom HTML page
integration
- Add download progress callback
- Add progress bar and indeterminate spinner to default HTML page
- Try downloading files multiple times when failing
- Get rid of godotfs.js
- Separate steps for engine initialization, game initialization and game
start
- Allow multiple games on one HTML page
- Substitution placeholders only used in .html file
- Placeholders renamed: $GODOT_BASE => $GODOT_BASENAME,
$GODOT_TMEM -> $GODOT_TOTAL_MEMORY
- Emscripten Module is now Engine.RuntimeEnvironment (no longer a global)
Diffstat (limited to 'platform/javascript/detect.py')
-rw-r--r-- | platform/javascript/detect.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index 68c8d1eea5..b1bb1adb2f 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -100,6 +100,7 @@ def configure(env): ## Link flags + env.Append(LINKFLAGS=['-s', 'EXTRA_EXPORTED_RUNTIME_METHODS="[\'FS\']"']) env.Append(LINKFLAGS=['-s', 'USE_WEBGL2=1']) if (env['wasm'] == 'yes'): @@ -112,6 +113,7 @@ def configure(env): else: env.Append(LINKFLAGS=['-s', 'ASM_JS=1']) env.Append(LINKFLAGS=['--separate-asm']) + env.Append(LINKFLAGS=['--memory-init-file', '1']) # TODO: Move that to opus module's config if("module_opus_enabled" in env and env["module_opus_enabled"] != "no"): |