// // AchievementManager::reportAchievementWithID from 0x3befdc to 0x3bf082 (166 bytes) // // 1 xrefs: // > GameManager::reportAchievementWithID @ 0x4192f8 // // 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:29 +0000 // int __fastcall AchievementManager::reportAchievementWithID( AchievementManager *this, const char *a2, const char *a3, int a4) { int result; // r0 int v9; // r11 cocos2d::CCObject *v10; // r10 size_t v11; // r0 FMODAudioEngine *v12; // r0 int v13[3]; // [sp+0h] [bp-14h] BYREF result = AchievementManager::isAchievementEarned(this, a2); if ( !result ) { result = AchievementManager::percentForAchievement(this, a2); if ( (int)a3 > result ) { v9 = *((_DWORD *)this + 70); if ( (int)a3 >= 100 ) a3 = (const char *)&dword_64; memset(v13, 0, sizeof(v13)); v10 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a3); v11 = strlen(a2); std::string::__init(v13, a2, v11); cocos2d::CCDictionary::setObject(v9, v10); std::string::~string((int)v13); result = AchievementManager::reportPlatformAchievementWithID(this, a2, a3); } if ( (int)a3 > 99 && !a4 ) { v12 = (FMODAudioEngine *)AchievementManager::sharedState((AchievementManager *)result); return (int)AchievementManager::notifyAchievementWithID(v12, a2); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source