fixed the OS.has_feature() API, and added support for 32 and 64.

This commit is contained in:
Juan Linietsky
2017-10-02 16:38:39 -03:00
parent a848fa6cde
commit 3cadecf17b
9 changed files with 38 additions and 4 deletions

View File

@@ -152,7 +152,7 @@ bool ProjectSettings::_set(const StringName &p_name, const Variant &p_value) {
bool override_valid = false;
for (int i = 1; i < s.size(); i++) {
String feature = s[i].strip_edges();
if (OS::get_singleton()->check_feature_support(feature) || custom_features.has(feature)) {
if (OS::get_singleton()->has_feature(feature) || custom_features.has(feature)) {
override_valid = true;
break;
}