diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-05-24 18:12:26 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-06-14 14:09:06 +0200 |
commit | 3a2fbd6fae6ea48b01b904f67245db2e6f4f8228 (patch) | |
tree | 158ea0f8682e7863f5eeec959780d73b8a37425e /platform/javascript/export/export_plugin.h | |
parent | 22a40365c05a0fce917110b87c5d46afdcd1b44a (diff) |
[HTML5] Add GDNative+Threads build.
Diffstat (limited to 'platform/javascript/export/export_plugin.h')
-rw-r--r-- | platform/javascript/export/export_plugin.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/platform/javascript/export/export_plugin.h b/platform/javascript/export/export_plugin.h index 2d6cbfde38..1aaec5454d 100644 --- a/platform/javascript/export/export_plugin.h +++ b/platform/javascript/export/export_plugin.h @@ -61,19 +61,16 @@ class EditorExportPlatformJavaScript : public EditorExportPlatform { EXPORT_MODE_NORMAL = 0, EXPORT_MODE_THREADS = 1, EXPORT_MODE_GDNATIVE = 2, + EXPORT_MODE_THREADS_GDNATIVE = 3, }; String _get_template_name(ExportMode p_mode, bool p_debug) const { String name = "webassembly"; - switch (p_mode) { - case EXPORT_MODE_THREADS: - name += "_threads"; - break; - case EXPORT_MODE_GDNATIVE: - name += "_gdnative"; - break; - default: - break; + if (p_mode & EXPORT_MODE_GDNATIVE) { + name += "_gdnative"; + } + if (p_mode & EXPORT_MODE_THREADS) { + name += "_threads"; } if (p_debug) { name += "_debug.zip"; |