// // GameStatsManager::countUnlockedSecretChests from 0x10033e298 to 0x10033e2dc (68 bytes) // // 4 xrefs: // > SecretRewardsLayer::init @ 0x1002e8cb8 // > SecretRewardsLayer::updateUnlockedLabel @ 0x1002e9b6c // > SecretRewardsLayer::updateUnlockedLabel @ 0x1002e9bbc // > SecretRewardsLayer::updateUnlockedGoldLabel @ 0x1002e9f64 // // 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::countUnlockedSecretChests(GameStatsManager *a1, GJRewardType a2) { cocos2d::CCDictionary *m_treasureRoomChests; // x0 cocos2d::CCDictElement *m_pElements; // x8 void *next; // x9 m_treasureRoomChests = a1->m_treasureRoomChests; if ( a2 ) { if ( m_treasureRoomChests ) { m_pElements = m_treasureRoomChests->m_pElements; if ( m_pElements ) { LODWORD(m_treasureRoomChests) = 0; do { next = m_pElements->hh.next; if ( m_pElements->m_pObject[1].m_uID == a2 ) LODWORD(m_treasureRoomChests) = (_DWORD)m_treasureRoomChests + 1; m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next; } while ( next ); } else { LODWORD(m_treasureRoomChests) = 0; } } } else { LODWORD(m_treasureRoomChests) = cocos2d::CCDictionary::count(m_treasureRoomChests); } return (int)m_treasureRoomChests; }
GD Web Decomp Icon

GD Web Decomp

Raw Source