// // sub_5E3554 from 0x5e3554 to 0x5e35ca (118 bytes) // // 4 xrefs: // > cocos2d::JniHelper::getClassID @ 0x5e3626 // > cocos2d::JniHelper::getStaticMethodInfo @ 0x5e3692 // > cocos2d::JniHelper::getMethodInfo @ 0x5e3712 // > cocos2d::JniHelper::jstring2string @ 0x5e379c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall sub_5E3554(cocos2d::JniHelper *a1) { int JavaVM; // r0 int v3; // r0 cocos2d::JniHelper *v4; // r0 int v5; // r0 JavaVM = cocos2d::JniHelper::getJavaVM(a1); v3 = (*(int (__fastcall **)(int, cocos2d::JniHelper *, int))(*(_DWORD *)JavaVM + 24))(JavaVM, a1, 65540); if ( v3 == -2 ) { v4 = (cocos2d::JniHelper *)pthread_key_create((pthread_key_t *)&dword_AC9190, (void (*)(void *))sub_5E3650); v5 = cocos2d::JniHelper::getJavaVM(v4); if ( (*(int (__fastcall **)(int, cocos2d::JniHelper *, _DWORD))(*(_DWORD *)v5 + 16))(v5, a1, 0) < 0 ) { _android_log_print(3, "JniHelper", "%s", "Failed to get the environment using AttachCurrentThread()"); return 0; } if ( !pthread_getspecific(dword_AC9190) ) pthread_setspecific(dword_AC9190, a1); } else if ( v3 ) { _android_log_print(3, "JniHelper", "%s", "Failed to get the environment using GetEnv()"); return 0; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source