//
// PlatformToolbox::reportAchievementWithID from 0x3946fc to 0x39475a (94 bytes)
//
// 1 xrefs:
// > AchievementManager::reportPlatformAchievementWithID @ 0x3befaa
//
// 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:17 +0000
//
int __fastcall PlatformToolbox::reportAchievementWithID(int this, const char *a2, int a3)
{
const char *v3; // r5
jstring v4; // r0
_JNIEnv *v5[3]; // [sp+0h] [bp-14h] BYREF
v3 = (const char *)this;
if ( (int)a2 > 99 )
{
this = cocos2d::JniHelper::getStaticMethodInfo(
v5,
"com/customRobTop/BaseRobTopActivity",
"unlockAchievement",
"(Ljava/lang/String;)V");
if ( this )
{
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 this;
}