// // GJBaseGameLayer::countCollectedUserCoins from 0x46f348 to 0x46f388 (64 bytes) // // 1 xrefs: // > PlayLayer::levelComplete @ 0x313620 // // 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 GJBaseGameLayer::countCollectedUserCoins(GJBaseGameLayer *a1) { cocos2d::CCDictionary *m_collectedItems; // r4 cocos2d::CCDictElement *m_pElements; // r3 cocos2d::CCDictElement *next; // r5 cocos2d::CCDictElement *v4; // r2 m_collectedItems = a1->m_collectedItems; if ( m_collectedItems ) { m_pElements = m_collectedItems->m_pElements; if ( m_pElements ) next = (cocos2d::CCDictElement *)m_pElements->hh.next; else next = nullptr; m_collectedItems = nullptr; while ( m_pElements ) { if ( ((int (__fastcall *)(cocos2d::CCObject *))m_pElements->m_pObject->__vftable[22].isEqual)(m_pElements->m_pObject) == 31 ) m_collectedItems = (cocos2d::CCDictionary *)((char *)m_collectedItems + 1); if ( next ) v4 = (cocos2d::CCDictElement *)next->hh.next; else v4 = nullptr; m_pElements = next; next = v4; } } return (int)m_collectedItems; }
GD Web Decomp Icon

GD Web Decomp

Raw Source