// // AchievementManager::reportAchievementWithID from 0x2da7f8 to 0x2da890 (152 bytes) // // 1 xrefs: // > GameManager::reportAchievementWithID @ 0x325c98 // // 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 // void AchievementManager::reportAchievementWithID(AchievementManager *a1, const char *a2, int a3, bool a4) { _BOOL4 v4; // r9 cocos2d::CCDictionary *m_reportedAchievements; // r11 cocos2d::CCObject *v9; // r10 AchievementManager *v10; // r0 _BYTE v11[4]; // [sp+8h] [bp-Ch] BYREF v4 = a4; if ( !AchievementManager::isAchievementEarned(a1, a2) ) { if ( a3 > AchievementManager::percentForAchievement(a1, a2) ) { m_reportedAchievements = a1->m_reportedAchievements; if ( a3 >= 100 ) a3 = (int)&dword_64; v9 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a3); sub_776584((int)v11, (char *)a2); cocos2d::CCDictionary::setObject((int)m_reportedAchievements, v9); sub_774008(v11); AchievementManager::reportPlatformAchievementWithID(a1, a2, a3); } if ( a3 > 99 && !v4 ) { v10 = AchievementManager::sharedState(); AchievementManager::notifyAchievementWithID(v10, a2); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source