// // GameStatsManager::claimListReward from 0x41c554 to 0x41c5f0 (156 bytes) // // 1 xrefs: // > LevelListLayer::onClaimReward @ 0x58ec62 // // 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 // bool GameStatsManager::claimListReward(GameStatsManager *a1, GJLevelList *a2) { int v4; // r0 const char *m_diamonds; // r8 int m_levelsToClaim; // r3 cocos2d::CCDictionary *m_completedLists; // r10 cocos2d::CCObject *v8; // r9 _DWORD v10[2]; // [sp+0h] [bp-8h] BYREF v10[0] = a1; v10[1] = a2; v4 = GJLevelList::completedLevels(a2); m_diamonds = (const char *)a2->m_diamonds; m_levelsToClaim = a2->m_levelsToClaim; if ( (int)m_diamonds <= 0 || m_levelsToClaim <= 0 || v4 < m_levelsToClaim || GameStatsManager::hasClaimedListReward(a1, a2) ) { return 0; } m_completedLists = a1->m_completedLists; v8 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", m_diamonds); GameStatsManager::getListRewardKey((GameStatsManager *)v10, (GJLevelList *)a1, (int)a2); cocos2d::CCDictionary::setObject((int)m_completedLists, v8); sub_774008(v10); GameStatsManager::incrementStat(a1, "13", (int)m_diamonds); GameStatsManager::incrementStat(a1, "41"); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source