// // GameStatsManager::countSecretChests from 0x10008c440 to 0x10008c490 (80 bytes) // // 4 xrefs: // > SecretRewardsLayer::init @ 0x10063115d // > SecretRewardsLayer::updateUnlockedLabel @ 0x100632280 // > SecretRewardsLayer::updateUnlockedLabel @ 0x1006322e7 // > SecretRewardsLayer::updateUnlockedGoldLabel @ 0x1006327a4 // // 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 __fastcall GameStatsManager::countSecretChests(GameStatsManager *a1, GJRewardType a2) { cocos2d::CCDictionary *m_allTreasureRoomChests; // rdi int result; // eax cocos2d::CCDictElement *m_pElements; // rcx cocos2d::CCObject *m_pObject; // rdx m_allTreasureRoomChests = a1->m_allTreasureRoomChests; if ( !a2 ) return cocos2d::CCDictionary::count(m_allTreasureRoomChests); result = 0; if ( m_allTreasureRoomChests ) { m_pElements = m_allTreasureRoomChests->m_pElements; if ( m_pElements ) { result = 0; do { m_pObject = m_pElements->m_pObject; m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next; result += m_pObject[1].m_uID == a2; } while ( m_pElements ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source