[HTML5] Make GDNative support feature-based.
This is suboptimal as it requires adding an extra compile flag, but rewriting how feature tags work is beyond the scope of this work.
This commit is contained in:
1 parent
1e7bd3d08b
commit
dd9503dc19
4 files changed
+22
-3
No files matched your search
@@ -330,6 +330,12 @@ void EditorExportPlatformJavaScript::get_preset_features(const Ref<EditorExportP
|
||||
r_features->push_back("etc2");
|
||||
}
|
||||
}
|
||||
ExportMode mode = (ExportMode)(int)p_preset->get("variant/export_type");
|
||||
if (mode == EXPORT_MODE_THREADS) {
|
||||
r_features->push_back("threads");
|
||||
} else if (mode == EXPORT_MODE_GDNATIVE) {
|
||||
r_features->push_back("wasm32");
|
||||
}
|
||||
}
|
||||
|
||||
void EditorExportPlatformJavaScript::get_export_options(List<ExportOption> *r_options) {
|
||||
|
||||
Reference in new issue
Block a user