diff options
| author | Rémi Verschelde | 2016-12-08 07:46:37 +0100 |
|---|---|---|
| committer | GitHub | 2016-12-08 07:46:37 +0100 |
| commit | 24a440a34f0b83c6e385f08b9254fde8064a941a (patch) | |
| tree | 4c39e0eee0478179df82780d43f60f9639076781 /platform/javascript/export/export.cpp | |
| parent | a3582fa3cb11c785ecf61dd2b04656473864b27e (diff) | |
| parent | 5ede1a1226edada5cf3825801a0e8b0d32809e74 (diff) | |
| download | godot-24a440a34f0b83c6e385f08b9254fde8064a941a.tar.gz godot-24a440a34f0b83c6e385f08b9254fde8064a941a.tar.zst godot-24a440a34f0b83c6e385f08b9254fde8064a941a.zip | |
Diffstat (limited to 'platform/javascript/export/export.cpp')
| -rw-r--r-- | platform/javascript/export/export.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/javascript/export/export.cpp b/platform/javascript/export/export.cpp index f934916aa..bcc02f3ba 100644 --- a/platform/javascript/export/export.cpp +++ b/platform/javascript/export/export.cpp @@ -183,6 +183,7 @@ void EditorExportPlatformJavaScript::_fix_html(Vector<uint8_t>& p_html, const St current_line = current_line.replace("$GODOT_FS",p_name+"fs.js"); current_line = current_line.replace("$GODOT_MEM",p_name+".mem"); current_line = current_line.replace("$GODOT_JS",p_name+".js"); + current_line = current_line.replace("$GODOT_ASM",p_name+".asm.js"); current_line = current_line.replace("$GODOT_CANVAS_WIDTH",Globals::get_singleton()->get("display/width")); current_line = current_line.replace("$GODOT_CANVAS_HEIGHT",Globals::get_singleton()->get("display/height")); current_line = current_line.replace("$GODOT_HEAD_TITLE",!html_title.empty()?html_title:(String) Globals::get_singleton()->get("application/name")); @@ -323,6 +324,11 @@ Error EditorExportPlatformJavaScript::export_project(const String& p_path, bool file=p_path.get_file().basename()+".js"; } + if (file=="godot.asm.js") { + + file=p_path.get_file().basename()+".asm.js"; + } + if (file=="godot.mem") { //_fix_godot(data); |
