summaryrefslogtreecommitdiff
path: root/platform/javascript/export/export_plugin.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-06-14 15:04:30 +0200
committerGitHub <noreply@github.com>2022-06-14 15:04:30 +0200
commit64c2df8a47d3aa479570e08fe9611bb14012dd97 (patch)
tree09fa004be6195dc2c180a8e723c9d1648e1f1f76 /platform/javascript/export/export_plugin.h
parentc704b94faa111ead4040832175cca861ac509565 (diff)
parent3a2fbd6fae6ea48b01b904f67245db2e6f4f8228 (diff)
Merge pull request #62028 from Faless/js/4.x_threads_gdnative_export
Diffstat (limited to 'platform/javascript/export/export_plugin.h')
-rw-r--r--platform/javascript/export/export_plugin.h15
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";