1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-02 16:48:55 +00:00

Deprecate and remove vendors specific XR APIs from the Godot core Android library

Follow-up to https://github.com/GodotVR/godot_openxr_vendors/pull/380, done in order to prevent vendors specific dependencies onto the Godot core Android library.
This commit is contained in:
Fredia Huya-Kouadio
2025-10-20 19:36:22 -07:00
committed by Fredia Huya-Kouadio
parent 9dd6c4dbac
commit 023024440b
13 changed files with 54 additions and 156 deletions

View File

@@ -674,4 +674,13 @@ JNIEXPORT jboolean JNICALL Java_org_godotengine_godot_GodotLib_isProjectManagerH
}
return false;
}
JNIEXPORT jboolean JNICALL Java_org_godotengine_godot_GodotLib_hasFeature(JNIEnv *env, jclass clazz, jstring p_feature) {
OS *os = OS::get_singleton();
if (os) {
String feature = jstring_to_string(p_feature, env);
return os->has_feature(feature);
}
return false;
}
}