// // SecretLayer5::claimOnlineReward from 0x6e4be8 to 0x6e4cd2 (234 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:57:23 +0000 // int __fastcall SecretLayer5::claimOnlineReward(SecretLayer5 *this) { char *v2; // r7 int v3; // r8 int isSpecialChestUnlocked; // r8 GameStatsManager *v5; // r0 int *v6; // r8 RewardUnlockLayer **v7; // r7 RewardsPage *v8; // r2 FLAlertLayer *v10; // r4 int v11; // r8 void (__fastcall *v12)(int, FLAlertLayer *, int); // r9 int v13; // r0 float v14; // r1 cocos2d::CCSequence *v15; // r7 cocos2d::CCFiniteTimeAction *v16; // r0 int v17; // r3 cocos2d::CCAction *v18; // r0 int v19[3]; // [sp+8h] [bp-14h] BYREF v2 = (char *)this + 388; v3 = GameStatsManager::sharedState(this); std::string::basic_string(v19, (int)v2); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v3, (int)v19); v5 = (GameStatsManager *)std::string::~string((int)v19); if ( isSpecialChestUnlocked ) return SecretLayer5::unlockUI(this); v6 = (int *)GameStatsManager::sharedState(v5); std::string::basic_string(v19, (int)v2); v7 = (RewardUnlockLayer **)GameStatsManager::unlockOnlineChest(v6, (int)v19); std::string::~string((int)v19); if ( !v7 ) return SecretLayer5::unlockUI(this); v10 = RewardUnlockLayer::create(v7[15], nullptr, v8); v11 = (*(int (__fastcall **)(SecretLayer5 *))(*(_DWORD *)this + 256))(this); v12 = *(void (__fastcall **)(int, FLAlertLayer *, int))(*(_DWORD *)v11 + 232); v13 = (*(int (__fastcall **)(SecretLayer5 *))(*(_DWORD *)this + 52))(this); v12(v11, v10, v13 + 1); RewardUnlockLayer::showCollectReward(v10, (GJRewardItem *)v7); v15 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3F000000, v14); v16 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, SecretLayer5::unlockUI, 0); v18 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v15, v16, 0, v17, SecretLayer5::unlockUI, 0); return cocos2d::CCNode::runAction(this, v18); }
GD Web Decomp Icon

GD Web Decomp

Raw Source