summaryrefslogtreecommitdiffstats
path: root/platform/web/export/export_plugin.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-08-30 23:57:02 +0200
committerGitHub <noreply@github.com>2022-08-30 23:57:02 +0200
commit87f9038ca017b8d8275677578ec08923787fc2b4 (patch)
tree0e0fe541d04da59c28d47ba8affc9b6107a24432 /platform/web/export/export_plugin.h
parentf6714581cc29e14d2b0799a36d5ce91e172489c5 (diff)
parentf958f002832608b294ea4bbc588f4bc7e4ef95d4 (diff)
downloadredot-engine-87f9038ca017b8d8275677578ec08923787fc2b4.tar.gz
Merge pull request #65094 from Faless/web/4.x_templates_refactor
[Web] Require threads, rtti, allow optimize=speed.
Diffstat (limited to 'platform/web/export/export_plugin.h')
-rw-r--r--platform/web/export/export_plugin.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/platform/web/export/export_plugin.h b/platform/web/export/export_plugin.h
index 9c1bf2a5ef..5b7ce5f708 100644
--- a/platform/web/export/export_plugin.h
+++ b/platform/web/export/export_plugin.h
@@ -57,20 +57,10 @@ class EditorExportPlatformWeb : public EditorExportPlatform {
Mutex server_lock;
Thread server_thread;
- enum ExportMode {
- 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";
- if (p_mode & EXPORT_MODE_GDNATIVE) {
- name += "_gdnative";
- }
- if (p_mode & EXPORT_MODE_THREADS) {
- name += "_threads";
+ String _get_template_name(bool p_extension, bool p_debug) const {
+ String name = "web";
+ if (p_extension) {
+ name += "_dlink";
}
if (p_debug) {
name += "_debug.zip";