// // AchievementManager::percentForAchievement from 0x552714 to 0x552810 (252 bytes) // // 5 xrefs: // > AchievementManager::isAchievementEarned @ 0x552818 // > AchievementManager::reportAchievementWithID @ 0x553b40 // > GameManager::syncPlatformAchievements @ 0x5eb724 // > AchievementCell::loadFromDict @ 0x60dc04 // > @ 0x54300 // // 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 // int AchievementManager::percentForAchievement(AchievementManager *a1, const char *a2) { cocos2d::CCDictionary *m_reportedAchievements; // x21 cocos2d::CCString *v3; // x0 int v4; // w20 char *v5; // x0 unsigned int *v7; // x2 int v8; // w1 std::string v9; // [xsp+40h] [xbp+40h] BYREF m_reportedAchievements = a1->m_reportedAchievements; sub_D153B8((int)&v9, (char *)a2); v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(m_reportedAchievements, &v9); v4 = cocos2d::CCString::intValue(v3); v5 = (char *)v9.m_data.m_data - 24; if ( (__int64 *)v9.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v7 = (unsigned int *)((char *)v9.m_data.m_data - 8); do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } else { v8 = *((_DWORD *)v9.m_data.m_data - 2); *((_DWORD *)v9.m_data.m_data - 2) = v8 - 1; } if ( v8 <= 0 ) operator delete(v5); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source