//
// showDialogJNI from 0x7eca74 to 0x7ecaee (122 bytes)
//
// 1 xrefs:
// > cocos2d::CCMessageBox @ 0x7eaf5c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:01:00 +0000
//
int __fastcall showDialogJNI(int result, const char *a2)
{
const char *v3; // r6
const char *v4; // r1
jstring v5; // r5
_JNIEnv *v6[3]; // [sp+8h] [bp-10h] BYREF
v3 = (const char *)result;
if ( result )
{
result = cocos2d::JniHelper::getStaticMethodInfo(
v6,
"org/cocos2dx/lib/Cocos2dxHelper",
"showDialog",
"(Ljava/lang/String;Ljava/lang/String;)V");
if ( result )
{
if ( a2 )
v4 = a2;
else
v4 = (const char *)&unk_B6B226;
v5 = _JNIEnv::NewStringUTF(v6[0], v4);
_JNIEnv::NewStringUTF(v6[0], v3);
_JNIEnv::CallStaticVoidMethod((int)v6[0], (int)v6[1], (int)v6[2], (int)v5);
_JNIEnv::DeleteLocalRef((int)v6[0]);
_JNIEnv::DeleteLocalRef((int)v6[0]);
return _JNIEnv::DeleteLocalRef((int)v6[0]);
}
}
return result;
}