// // GJBaseGameLayer::countCollectedUserCoins from 0x85a3f4 to 0x85a468 (116 bytes) // // 2 xrefs: // > PlayLayer::levelComplete @ 0x5d132c // > @ 0x4b300 // // 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; // x0 cocos2d::CCDictElement *m_pElements; // x0 cocos2d::CCDictElement *next; // x19 int v4; // w20 m_collectedItems = a1->m_collectedItems; if ( !m_collectedItems ) return 0; m_pElements = m_collectedItems->m_pElements; if ( !m_pElements ) return 0; next = (cocos2d::CCDictElement *)m_pElements->hh.next; v4 = 0; while ( 1 ) { if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))m_pElements->m_pObject->__vftable[22].isEqual)(m_pElements->m_pObject) == 31 ) ++v4; if ( !next ) break; m_pElements = next; next = (cocos2d::CCDictElement *)next->hh.next; } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source