// // GameStatsManager::completedChallenge from 0x41c4cc to 0x41c548 (124 bytes) // // 1 xrefs: // > ChallengesPage::claimItem @ 0x4cd0d8 // // 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 GameStatsManager::completedChallenge(GameStatsManager *a1, GJChallengeItem *a2) { const char *v4; // r4 cocos2d::CCDictionary *m_challengeDiamonds; // r10 cocos2d::CCObject *v6; // r9 _DWORD v7[2]; // [sp+0h] [bp-8h] BYREF v7[0] = a1; v7[1] = a2; if ( a2->m_canClaim && !GameStatsManager::hasCompletedChallenge(a1, a2) ) { v4 = (const char *)(a2->m_reward.random - a2->m_reward.seed); m_challengeDiamonds = a1->m_challengeDiamonds; v6 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v4); GameStatsManager::getChallengeKey((GameStatsManager *)v7, (GJChallengeItem *)a1, (int)a2); cocos2d::CCDictionary::setObject((int)m_challengeDiamonds, v6); sub_774008(v7); GameStatsManager::incrementStat(a1, "13", (int)v4); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source