// // GameManager::unlockIcon from 0x5f2968 to 0x5f2a8c (292 bytes) // // 2 xrefs: // > GameManager::completedAchievement @ 0x5f369c // > @ 0x93c48 // // 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 GameManager::unlockIcon(GameManager *a1, int a2, IconType a3) { cocos2d::CCDictionary *m_valueKeeper; // x23 cocos2d::CCObject *v5; // x22 void *v6; // x0 unsigned int *v7; // x2 int v8; // w1 __int64 v10; // [xsp+60h] [xbp+60h] BYREF m_valueKeeper = a1->m_valueKeeper; v5 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)&dword_0 + 1); GameManager::iconKey(a2, a3, (__int64)&v10); cocos2d::CCDictionary::setObject((int)m_valueKeeper, v5); v6 = (void *)(v10 - 24); if ( (__int64 *)(v10 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v7 = (unsigned int *)(v10 - 8); do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } else { v8 = *(_DWORD *)(v10 - 8); *(_DWORD *)(v10 - 8) = v8 - 1; } if ( v8 <= 0 ) operator delete(v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source