// // AchievementNotifier::showNextAchievement from 0x4edc44 to 0x4ede10 (460 bytes) // // 3 xrefs: // > AchievementNotifier::notifyAchievement @ 0x4ede68 // > AchievementNotifier::achievementDisplayFinished @ 0x4edeac // > @ 0x90b70 // // 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 AchievementNotifier::showNextAchievement(AchievementNotifier *a1) { FMODAudioEngine *v2; // x23 void *v3; // x0 cocos2d::CCArray *m_achievementBarArray; // x0 AchievementBar *v5; // x0 cocos2d::CCScene *m_nextScene; // x0 unsigned int *v7; // x2 int v8; // w1 __int64 v9; // [xsp+50h] [xbp+50h] BYREF if ( (unsigned int)cocos2d::CCArray::count(a1->m_achievementBarArray) ) { v2 = FMODAudioEngine::sharedEngine(); sub_D153B8((int)&v9, "achievement_01.ogg"); FMODAudioEngine::playEffect(v2, (std::string)&v9, (float)((float)dword_12412A8 * 0.05) + 1.0, 0.0, 0.3); v3 = (void *)(v9 - 24); if ( (__int64 *)(v9 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v7 = (unsigned int *)(v9 - 8); do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } else { v8 = *(_DWORD *)(v9 - 8); *(_DWORD *)(v9 - 8) = v8 - 1; } if ( v8 <= 0 ) operator delete(v3); } m_achievementBarArray = a1->m_achievementBarArray; ++dword_12412A8; v5 = (AchievementBar *)cocos2d::CCArray::objectAtIndex(m_achievementBarArray, 0); a1->m_activeAchievementBar = v5; cocos2d::CCObject::retain(v5); cocos2d::CCArray::removeObjectAtIndex(a1->m_achievementBarArray, 0, 1); m_nextScene = a1->m_nextScene; if ( m_nextScene ) a1->m_activeAchievementBar->m_nextScene = m_nextScene; AchievementBar::show(a1->m_activeAchievementBar); } else { dword_12412A8 = 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source