From 3cadecf17be08198f8a28e0674bfde30c8fc824f Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 2 Oct 2017 16:38:39 -0300 Subject: fixed the OS.has_feature() API, and added support for 32 and 64. --- platform/osx/export/export.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'platform/osx') diff --git a/platform/osx/export/export.cpp b/platform/osx/export/export.cpp index 2ec76fe0dd..0fd21d62ee 100644 --- a/platform/osx/export/export.cpp +++ b/platform/osx/export/export.cpp @@ -97,6 +97,16 @@ void EditorExportPlatformOSX::get_preset_features(const Ref if (p_preset->get("texture_format/etc2")) { r_features->push_back("etc2"); } + + int bits = p_preset->get("application/bits_mode"); + + if (bits == 0 || bits == 1) { + r_features->push_back("64"); + } + + if (bits == 0 || bits == 2) { + r_features->push_back("32"); + } } void EditorExportPlatformOSX::get_export_options(List *r_options) { -- cgit v1.2.3