MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / force_quit

Method force_quit

platform/android/java_godot_wrapper.cpp:169–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169bool GodotJavaWrapper::force_quit(JNIEnv *p_env, int p_instance_id) {
170 if (_finish) {
171 if (p_env == nullptr) {
172 p_env = get_jni_env();
173 }
174 ERR_FAIL_NULL_V(p_env, false);
175 return p_env->CallBooleanMethod(godot_instance, _finish, p_instance_id);
176 }
177 return false;
178}
179
180void GodotJavaWrapper::set_keep_screen_on(bool p_enabled) {
181 if (_set_keep_screen_on) {

Callers 2

killMethod · 0.80
_terminateFunction · 0.80

Calls 1

get_jni_envFunction · 0.85

Tested by

no test coverage detected