main-executable: extract native libs before instantiating the Application class

This commit is contained in:
Mis012
2025-08-01 13:40:29 +02:00
parent 53def20d4d
commit ebd16f01dc
5 changed files with 12 additions and 10 deletions

View File

@@ -90,7 +90,7 @@ void set_up_handle_cache(JNIEnv *env)
handle_cache.view_group.dispatchTouchEvent = _METHOD(handle_cache.view_group.class, "dispatchTouchEvent", "(Landroid/view/MotionEvent;)Z");
handle_cache.asset_manager.class = _REF((*env)->FindClass(env, "android/content/res/AssetManager"));
handle_cache.asset_manager.extractFromAPK = _STATIC_METHOD(handle_cache.asset_manager.class, "extractFromAPK", "(Ljava/lang/String;Ljava/lang/String;)V");
handle_cache.asset_manager.extractFromAPK = _STATIC_METHOD(handle_cache.asset_manager.class, "extractFromAPK", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V");
handle_cache.context.class = _REF((*env)->FindClass(env, "android/content/Context"));
if((*env)->ExceptionCheck(env))