//
// PlatformToolbox::tryShowRateDialog from 0x394850 to 0x3948b0 (96 bytes)
//
// 2 xrefs:
// > EndLevelLayer::customSetup @ 0x536a74
// > RetryLevelLayer::customSetup @ 0x547b2a
//
// 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 11:46:18 +0000
//
int __fastcall PlatformToolbox::tryShowRateDialog(int a1)
{
int result; // r0
const char *v3; // r1
jstring v4; // r0
_JNIEnv *v5[3]; // [sp+0h] [bp-14h] BYREF
result = cocos2d::JniHelper::getStaticMethodInfo(
v5,
"com/customRobTop/BaseRobTopActivity",
"tryShowRateDialog",
"(Ljava/lang/String;)V");
if ( result )
{
if ( (*(_BYTE *)a1 & 1) != 0 )
v3 = *(const char **)(a1 + 8);
else
v3 = (const char *)(a1 + 1);
v4 = _JNIEnv::NewStringUTF(v5[0], v3);
_JNIEnv::CallStaticVoidMethod((int)v5[0], (int)v5[1], (int)v5[2], (int)v4);
_JNIEnv::DeleteLocalRef((int)v5[0]);
return _JNIEnv::DeleteLocalRef((int)v5[0]);
}
return result;
}